ethereum_rlp.exceptions
Exceptions that can be thrown while serializing/deserializing RLP.
RLPException
Common base class for all RLP exceptions.
class RLPException:
DecodingError
Indicates that RLP decoding failed.
class DecodingError:
__str__
19 | @override |
---|
def __str__(self) -> str:
21 | message = [super().__str__()] |
---|---|
22 | current: BaseException = self |
23 | while isinstance(current, DecodingError) and current.__cause__: |
24 | current = current.__cause__ |
25 | if isinstance(current, DecodingError): |
26 | as_str = super(DecodingError, current).__str__() |
27 | else: |
28 | as_str = str(current) |
29 | message.append(f"\tbecause {as_str}") |
30 | return "\n".join(message) |
EncodingError
Indicates that RLP encoding failed.
class EncodingError: