Class IonException

    • Constructor Summary

      Constructors 
      Constructor Description
      IonException()  
      IonException​(java.lang.String message)  
      IonException​(java.lang.String message, java.lang.Throwable cause)  
      IonException​(java.lang.Throwable cause)
      Constructs a new exception with the given cause, copying the message from the cause into this instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T extends java.lang.Throwable>
      T
      causeOfType​(java.lang.Class<T> type)
      Finds the first exception in the Throwable.getCause() chain that is an instance of the given type.
      • 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

      • IonException

        public IonException()
      • IonException

        public IonException​(java.lang.String message)
      • IonException

        public IonException​(java.lang.String message,
                            java.lang.Throwable cause)
      • IonException

        public IonException​(java.lang.Throwable cause)
        Constructs a new exception with the given cause, copying the message from the cause into this instance.
        Parameters:
        cause - the root cause of the exception; must not be null.
    • Method Detail

      • causeOfType

        public <T extends java.lang.Throwable> T causeOfType​(java.lang.Class<T> type)
        Finds the first exception in the Throwable.getCause() chain that is an instance of the given type.
        Returns:
        null if there's no cause of the given type.