org.intermine.webservice.exceptions
Class ServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.intermine.webservice.exceptions.ServiceException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- BadRequestException, InternalErrorException, NoContentException, ResourceNotFoundException, ServiceForbiddenException
public class ServiceException
- extends java.lang.RuntimeException
ServiceException is a base class for all service exceptions.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
getMessage
public java.lang.String getMessage()
-
- Overrides:
getMessage in class java.lang.Throwable
getHttpErrorCode
public int getHttpErrorCode()
- Returns:
- http error code
setHttpErrorCode
public void setHttpErrorCode(int httpErrorCode)
- Parameters:
httpErrorCode - http error code