Package org.intermine.client.exceptions
Class ServiceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.intermine.client.exceptions.ServiceException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
BadRequestException
,InternalErrorException
,NotConnectedException
,NotImplementedException
,ResourceNotFoundException
,ServiceForbiddenException
,ServiceUnavailableException
public class ServiceException extends java.lang.RuntimeException
ServiceException is a base class for all service exceptions.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
ERROR_CODE
-
Constructor Summary
Constructors Constructor Description ServiceException(java.lang.String message)
ServiceException(java.lang.String message, java.lang.Throwable cause)
ServiceException(java.lang.Throwable cause)
ServiceException(HttpConnection connection)
Exception is filled in with some detailed information from response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHttpErrorCode()
java.lang.String
getMessage()
-
-
-
Field Detail
-
ERROR_CODE
protected static final int ERROR_CODE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ServiceException
public ServiceException(java.lang.String message)
- Parameters:
message
- message
-
ServiceException
public ServiceException(java.lang.String message, java.lang.Throwable cause)
- Parameters:
message
- messagecause
- cause
-
ServiceException
public ServiceException(java.lang.Throwable cause)
- Parameters:
cause
- cause
-
ServiceException
public ServiceException(HttpConnection connection)
Exception is filled in with some detailed information from response.- Parameters:
connection
- connection
-
-