Class CBORException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.upokecenter.cbor.CBORException
All Implemented Interfaces:
java.io.Serializable

public final class CBORException
extends java.lang.RuntimeException
Exception thrown for errors involving CBOR data.

This library may throw exceptions of this type in certain cases, notably when errors occur, and may supply messages to those exceptions (the message can be accessed through the Message property in.NET or the getMessage() method in Java). These messages are intended to be read by humans to help diagnose the error (or other cause of the exception); they are not intended to be parsed by computer programs, and the exact text of the messages may change at any time between versions of this library.

See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    CBORException()
    Initializes a new instance of the CBORException class.
    CBORException​(java.lang.String message)
    Initializes a new instance of the CBORException class.
    CBORException​(java.lang.String message, java.lang.Throwable innerException)
    Initializes a new instance of the CBORException class.
  • Method Summary

    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 Details

    • CBORException

      public CBORException()
      Initializes a new instance of the CBORException class.
    • CBORException

      public CBORException​(java.lang.String message)
      Initializes a new instance of the CBORException class.
      Parameters:
      message - The parameter message is a text string.
    • CBORException

      public CBORException​(java.lang.String message, java.lang.Throwable innerException)
      Initializes a new instance of the CBORException class. Uses the given message and inner exception.
      Parameters:
      message - The parameter message is a text string.
      innerException - The parameter innerException is an Exception object.