public class DecodeException extends Exception
| Constructor and Description | 
|---|
| DecodeException(ByteBuffer bb,
               String message)Constructs a DecodedException with the given ByteBuffer that cannot
 be decoded, and reason why. | 
| DecodeException(ByteBuffer bb,
               String message,
               Throwable cause)Constructor with the data being decoded, and the reason why it failed to be, and the cause. | 
| DecodeException(String encodedString,
               String message)Constructs a DecodedException with the given encoded string that cannot
 be decoded, and reason why. | 
| DecodeException(String encodedString,
               String message,
               Throwable cause)Constructor with the data being decoded, and the reason why it failed to be, and the cause. | 
| Modifier and Type | Method and Description | 
|---|---|
| ByteBuffer | getBytes()Return the ByteBuffer that cannot be decoded. | 
| String | getText()Return the encoded string that cannot be decoded. | 
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic DecodeException(ByteBuffer bb, String message, Throwable cause)
bb - the byte buffer with the data that could not be decodedmessage - the reason for the failurecause - the cause of the error.public DecodeException(String encodedString, String message, Throwable cause)
encodedString - the string that could not be decodedmessage - the reason for the failurecause - the cause of the error.public DecodeException(ByteBuffer bb, String message)
bb - the byte buffer with the data that could not be decodedmessage - TODOpublic DecodeException(String encodedString, String message)
encodedString - TODOmessage - the reason for the failurepublic ByteBuffer getBytes()
public String getText()
Copyright © 2013. All Rights Reserved.