Class ResultException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ResultException
    extends java.lang.RuntimeException
    ResultException is the exception thrown when a request fails.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ResultException​(java.lang.String message)  
      ResultException​(java.lang.String message, java.lang.String reason)
      Construct an informative exception.
      ResultException​(java.lang.String message, java.lang.Throwable cause)  
      ResultException​(java.lang.Throwable cause)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()
      java.lang.String getReason()
      Get the reason for this error.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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

      • ResultException

        public ResultException​(java.lang.String message)
        Parameters:
        message - message
      • ResultException

        public ResultException​(java.lang.String message,
                               java.lang.Throwable cause)
        Parameters:
        message - message
        cause - cause
      • ResultException

        public ResultException​(java.lang.Throwable cause)
        Parameters:
        cause - cause
      • ResultException

        public ResultException​(java.lang.String message,
                               java.lang.String reason)
        Construct an informative exception. Result sets may provide two separate strings - the message, a fairly dull statement of the general status, and a more informative message about the reason for this particular error.
        Parameters:
        message - The general statement
        reason - The specific reason
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable
      • getReason

        public java.lang.String getReason()
        Get the reason for this error. The reason is an explanation why this service request failed, hopefully giving the user enough information to be able to fix the original request.
        Returns:
        an explanation for the failure of the results.