Package com.norswap.nanoeth.rlp
Class RLPParsingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.norswap.nanoeth.rlp.RLPParsingException
- All Implemented Interfaces:
Serializable
public final class RLPParsingException extends Exception
Signals a problem while parsing some data from an RLP layout.
Receiving this exception means that the binary data has already successfully been decoded to a
RLP
structure — failure to do so results in a IllegalArgumentException
being
thrown from RLP.decode(byte[])
. Therefore this exception means the RLP structure does not
conform to some domain logic requirements.
The exception is enriched with a stack of string (trace
) used to precisely pinpoint
where the parsing problem occured.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description ArrayDeque<String>
trace
-
Constructor Summary
Constructors Constructor Description RLPParsingException(String message)
RLPParsingException(String message, Throwable cause)
-
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
trace
-
-
Constructor Details
-
RLPParsingException
-
RLPParsingException
-
-
Method Details
-
trace
Returns a string containing the initial message, then all the messages intrace
, in insertion order, separated by newlines.
-