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 Details

  • Constructor Details

    • RLPParsingException

      public RLPParsingException​(String message)
    • RLPParsingException

      public RLPParsingException​(String message, Throwable cause)
  • Method Details

    • trace

      public String trace()
      Returns a string containing the initial message, then all the messages in trace, in insertion order, separated by newlines.