# Class: com.pnfsoftware.jeb.util.encoding.BadEncodingException

This exception may be raised when an encoding or decoding error is detected.

## Constructor: BadEncodingException
- parameter: `message`, type: `java.lang.String`
- parameter: `offset`, type: `int`

Description: Create an encoding exception at the specified input offset.
parameter: message: error message
parameter: offset: zero\-based input offset where the error was detected

## Constructor: BadEncodingException
- parameter: `message`, type: `java.lang.String`
- parameter: `offset`, type: `int`
- parameter: `cause`, type: `java.lang.Throwable`

Description: Create an encoding exception at the specified input offset.
parameter: message: error message
parameter: offset: zero\-based input offset where the error was detected
parameter: cause: underlying cause

## Method: getMessage
- return type: `java.lang.String`


## Method: getOffset
- return type: `int`

Description: Get the input offset where the error was detected.
return: zero\-based input offset

