(self, message, unicode_error=None)
| 85 | :class:`UnicodeError` to help the caller catching unicode-related errors. |
| 86 | """ |
| 87 | def __init__(self, message, unicode_error=None): |
| 88 | if isinstance(unicode_error, UnicodeError): |
| 89 | UnicodeError.__init__(self, *unicode_error.args) |
| 90 | PyAsn1Error.__init__(self, message) |
| 91 | |
| 92 | |
| 93 | class PyAsn1UnicodeDecodeError(PyAsn1UnicodeError, UnicodeDecodeError): |