Class ServiceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.intermine.webservice.server.exceptions.ServiceException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
BadRequestException
,NoContentException
,NotAcceptableException
,NotImplementedException
,ResourceNotFoundException
,ServiceForbiddenException
,UnauthorizedException
public class ServiceException extends java.lang.RuntimeException
ServiceException is a base class for all service exceptions.- Author:
- Jakub Kulaviak
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceException(java.lang.String message)
ServiceException(java.lang.String message, int code)
ServiceException(java.lang.String message, java.lang.Throwable cause)
ServiceException(java.lang.String message, java.lang.Throwable cause, int code)
ServiceException(java.lang.Throwable cause)
ServiceException(java.lang.Throwable cause, int code)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHttpErrorCode()
java.lang.String
getMessage()
-
-
-
Constructor Detail
-
ServiceException
public ServiceException(java.lang.String message)
- Parameters:
message
- message
-
ServiceException
public ServiceException(java.lang.String message, int code)
- Parameters:
message
- messagecode
- The error code.
-
ServiceException
public ServiceException(java.lang.String message, java.lang.Throwable cause)
- Parameters:
message
- messagecause
- cause
-
ServiceException
public ServiceException(java.lang.String message, java.lang.Throwable cause, int code)
- Parameters:
message
- messagecause
- causecode
- the error code.
-
ServiceException
public ServiceException(java.lang.Throwable cause)
- Parameters:
cause
- cause
-
ServiceException
public ServiceException(java.lang.Throwable cause, int code)
- Parameters:
cause
- causecode
- the error code.
-
-