Class BadEncodingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.pnfsoftware.jeb.util.encoding.BadEncodingException
- All Implemented Interfaces:
Serializable
This exception may be raised when an encoding or decoding error is detected.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBadEncodingException(String message, int offset) Create an encoding exception at the specified input offset.BadEncodingException(String message, int offset, Throwable cause) Create an encoding exception at the specified input offset. -
Method Summary
Modifier and TypeMethodDescriptionintGet the input offset where the error was detected.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BadEncodingException
Create an encoding exception at the specified input offset.- Parameters:
message- error messageoffset- zero-based input offset where the error was detected
-
BadEncodingException
Create an encoding exception at the specified input offset.- Parameters:
message- error messageoffset- zero-based input offset where the error was detectedcause- underlying cause
-
-
Method Details
-
getOffset
public int getOffset()Get the input offset where the error was detected.- Returns:
- zero-based input offset
-
getMessage
- Overrides:
getMessagein classThrowable
-