Pike v8.1 release 6

Class Charset.EncodeError

Inheritance graph
Error.Generic Charset.EncodeError
Description

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

FIXME

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


Variable charset

string Charset.EncodeError.charset

Description

The encoding charset, typically as known to Charset.encoder.

Note

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


Variable err_pos

int Charset.EncodeError.err_pos

Description

The failing position in err_str.


Variable err_str

string Charset.EncodeError.err_str

Description

The string that failed to be encoded.


Inherit Generic

inherit Error.Generic : Generic