Package org.intermine.client.exceptions
Class ResultException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.intermine.client.exceptions.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.
-
-
-
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
- messagecause
- 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 statementreason
- The specific reason
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.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.
-
-