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
IOException
while reading or writing data. ExtendsFaunaException
to provide detailed information about codec-related errors.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CodecException(java.lang.String message)
Constructs a newCodecException
with the specified detail message.CodecException(java.lang.String message, java.lang.Throwable cause)
Constructs a newCodecException
with the specified detail message and cause.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CodecException
decodingIOException(java.io.IOException exc)
Creates a newCodecException
specifically for decodingIOException
s.static CodecException
encodingIOException(java.io.IOException exc)
Creates a newCodecException
specifically for encodingIOException
s.
-
-
-
Constructor Detail
-
CodecException
public CodecException(java.lang.String message)
Constructs a newCodecException
with the specified detail message.- Parameters:
message
- AString
describing the reason for the codec error.
-
CodecException
public CodecException(java.lang.String message, java.lang.Throwable cause)
Constructs a newCodecException
with the specified detail message and cause.- Parameters:
message
- AString
describing the reason for the codec error.cause
- The underlyingThrowable
cause of the error.
-
-
Method Detail
-
decodingIOException
public static CodecException decodingIOException(java.io.IOException exc)
Creates a newCodecException
specifically for decodingIOException
s.- Parameters:
exc
- TheIOException
encountered during decoding.- Returns:
- A
CodecException
describing the decoding error.
-
encodingIOException
public static CodecException encodingIOException(java.io.IOException exc)
Creates a newCodecException
specifically for encodingIOException
s.- Parameters:
exc
- TheIOException
encountered during encoding.- Returns:
- A
CodecException
describing the encoding error.
-
-