Pike v8.1 release 6

Class Charset.DecodeError

Inheritance graph
Error.Generic Charset.DecodeError
Description

Error thrown when decode fails (and no replacement char or replacement callback has been registered).

FIXME

This error class is not actually used by this module yet - decode errors are still thrown as untyped error arrays. At this point it exists only for use by other modules.


Variable charset

string Charset.DecodeError.charset

Description

The decoding charset, typically as known to Charset.decoder.

Note

Other code may produce errors of this type. In that case this name is something that Charset.decoder does not accept (unless it implements exactly the same charset), and it should be reasonably certain that Charset.decoder never accepts that name in the future (unless it is extended to implement exactly the same charset).


Variable err_pos

int Charset.DecodeError.err_pos

Description

The failing position in err_str.


Variable err_str

string Charset.DecodeError.err_str

Description

The string that failed to be decoded.


Inherit Generic

inherit Error.Generic : Generic