Class 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. Extends FaunaException to provide detailed information about codec-related errors.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CodecException​(java.lang.String message)
      Constructs a new CodecException with the specified detail message.
      CodecException​(java.lang.String message, java.lang.Throwable cause)
      Constructs a new CodecException 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 new CodecException specifically for decoding IOExceptions.
      static CodecException encodingIOException​(java.io.IOException exc)
      Creates a new CodecException specifically for encoding IOExceptions.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CodecException

        public CodecException​(java.lang.String message)
        Constructs a new CodecException with the specified detail message.
        Parameters:
        message - A String describing the reason for the codec error.
      • CodecException

        public CodecException​(java.lang.String message,
                              java.lang.Throwable cause)
        Constructs a new CodecException with the specified detail message and cause.
        Parameters:
        message - A String describing the reason for the codec error.
        cause - The underlying Throwable cause of the error.
    • Method Detail

      • decodingIOException

        public static CodecException decodingIOException​(java.io.IOException exc)
        Creates a new CodecException specifically for decoding IOExceptions.
        Parameters:
        exc - The IOException encountered during decoding.
        Returns:
        A CodecException describing the decoding error.
      • encodingIOException

        public static CodecException encodingIOException​(java.io.IOException exc)
        Creates a new CodecException specifically for encoding IOExceptions.
        Parameters:
        exc - The IOException encountered during encoding.
        Returns:
        A CodecException describing the encoding error.