Class QueryException

  • All Implemented Interfaces:
    java.io.Serializable

    public class QueryException
    extends TaskExecutionException
    Thrown when an error occurs while executing a web query.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getLocalizedMessage()  
      int getStatus()
      Returns the HTTP status code corresponding to the exception.
      • Methods inherited from class java.lang.Throwable

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

      • QueryException

        public QueryException​(int status)
      • QueryException

        public QueryException​(int status,
                              java.lang.String message)
      • QueryException

        public QueryException​(java.lang.Throwable cause)
    • Method Detail

      • getStatus

        public int getStatus()
        Returns the HTTP status code corresponding to the exception.
        Returns:
        An HTTP status code reflecting the nature of the exception, or 0 if the HTTP status is not known.
      • getLocalizedMessage

        public java.lang.String getLocalizedMessage()
        Overrides:
        getLocalizedMessage in class java.lang.Throwable