org.ogf.graap.wsag.api.exceptions
Class ResourceUnknownException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.ogf.graap.wsag.api.exceptions.WSAgreementException
org.ogf.graap.wsag.api.exceptions.ResourceUnknownException
- All Implemented Interfaces:
- Serializable
public class ResourceUnknownException
- extends WSAgreementException
ResourceUnknownException
- Author:
- Oliver Waeldrich
- See Also:
- Serialized Form
Method Summary |
int |
getErrorClass()
Maps an application error to an error class. |
int |
getErrorCode()
Returns a unique error code for the specific Exception; |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ResourceUnknownException
public ResourceUnknownException()
- default constructor
ResourceUnknownException
public ResourceUnknownException(String message)
- Parameters:
message
- the exception message
ResourceUnknownException
public ResourceUnknownException(String message,
Throwable cause)
- Parameters:
message
- the exception messagecause
- the exception cause
ResourceUnknownException
public ResourceUnknownException(Throwable cause)
- Parameters:
cause
- the exception cause
getErrorCode
public int getErrorCode()
- Description copied from class:
WSAgreementException
- Returns a unique error code for the specific Exception;
- Specified by:
getErrorCode
in class WSAgreementException
- Returns:
- the exception specific error code
getErrorClass
public int getErrorClass()
- Description copied from class:
WSAgreementException
- Maps an application error to an error class. This error class reflects a HTTP error code. By default
this method returns 500 as error class indicating an application error. Exceptions may overwrite this
method in order to provide a more appropriate error code.
- Overrides:
getErrorClass
in class WSAgreementException
- Returns:
- the code of the error class
Copyright © 2008-2012. All Rights Reserved.