Class BadEncodingException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.pnfsoftware.jeb.util.encoding.BadEncodingException
All Implemented Interfaces:
Serializable

public class BadEncodingException extends RuntimeException
This exception may be raised when an encoding or decoding error is detected.
See Also:
  • Constructor Details

    • BadEncodingException

      public BadEncodingException(String message, int offset)
      Create an encoding exception at the specified input offset.
      Parameters:
      message - error message
      offset - zero-based input offset where the error was detected
    • BadEncodingException

      public BadEncodingException(String message, int offset, Throwable cause)
      Create an encoding exception at the specified input offset.
      Parameters:
      message - error message
      offset - zero-based input offset where the error was detected
      cause - underlying cause
  • Method Details

    • getOffset

      public int getOffset()
      Get the input offset where the error was detected.
      Returns:
      zero-based input offset
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable