Package com.fauna.exception
Class CodecException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.fauna.exception.FaunaException
-
- com.fauna.exception.CodecException
-
- All Implemented Interfaces:
java.io.Serializable
public class CodecException extends FaunaException
Exception representing errors encountered during encoding or decoding operations.This exception is typically thrown when an encoding or decoding error occurs within the Fauna client, such as an
IOExceptionwhile reading or writing data. ExtendsFaunaExceptionto provide detailed information about codec-related errors.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CodecException(java.lang.String message)Constructs a newCodecExceptionwith the specified detail message.CodecException(java.lang.String message, java.lang.Throwable cause)Constructs a newCodecExceptionwith the specified detail message and cause.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CodecExceptiondecodingIOException(java.io.IOException exc)Creates a newCodecExceptionspecifically for decodingIOExceptions.static CodecExceptionencodingIOException(java.io.IOException exc)Creates a newCodecExceptionspecifically for encodingIOExceptions.
-
-
-
Constructor Detail
-
CodecException
public CodecException(java.lang.String message)
Constructs a newCodecExceptionwith the specified detail message.- Parameters:
message- AStringdescribing the reason for the codec error.
-
CodecException
public CodecException(java.lang.String message, java.lang.Throwable cause)Constructs a newCodecExceptionwith the specified detail message and cause.- Parameters:
message- AStringdescribing the reason for the codec error.cause- The underlyingThrowablecause of the error.
-
-
Method Detail
-
decodingIOException
public static CodecException decodingIOException(java.io.IOException exc)
Creates a newCodecExceptionspecifically for decodingIOExceptions.- Parameters:
exc- TheIOExceptionencountered during decoding.- Returns:
- A
CodecExceptiondescribing the decoding error.
-
encodingIOException
public static CodecException encodingIOException(java.io.IOException exc)
Creates a newCodecExceptionspecifically for encodingIOExceptions.- Parameters:
exc- TheIOExceptionencountered during encoding.- Returns:
- A
CodecExceptiondescribing the encoding error.
-
-