[Top]
Locale
Locale.Charset
Locale.Charset.DecodeError
|
Class Locale.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.
- Inherit
Generic
inherit Error.Generic : Generic
- Variable
err_str
string Locale.Charset.DecodeError.err_str
- Description
The string that failed to be decoded.
- Variable
err_pos
int Locale.Charset.DecodeError.err_pos
- Description
The failing position in err_str .
- Variable
charset
string Locale.Charset.DecodeError.charset
- Description
The decoding charset, typically as known to
Locale.Charset.decoder .
- Note
Other code may produce errors of this type. In that case this
name is something that Locale.Charset.decoder does not accept
(unless it implements exactly the same charset), and it should
be reasonably certain that Locale.Charset.decoder never
accepts that name in the future (unless it is extended to
implement exactly the same charset).
|