org.ogf.graap.wsag.api.exceptions
Class ResourceUnknownException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.ogf.graap.wsag.api.exceptions.WSAgreementException
              extended by org.ogf.graap.wsag.api.exceptions.ResourceUnknownException
All Implemented Interfaces:
Serializable

public class ResourceUnknownException
extends WSAgreementException

ResourceUnknownException

Author:
Oliver Waeldrich
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ogf.graap.wsag.api.exceptions.WSAgreementException
AGREEMENT_CONSTRAINT_VALIDATION_ERROR, AGREEMENT_CREATION_ERROR, AGREEMENT_FACTORY_ERROR, NEGOTIATION_ERROR, NEGOTIATION_INSTANTIATION_ERROR, NEGOTIATION_VALIDATION_ERROR, RESOURCE_UNAVAILABLE_ERROR, RESOURCE_UNKNOWN_ERROR
 
Constructor Summary
ResourceUnknownException()
          default constructor
ResourceUnknownException(String message)
           
ResourceUnknownException(String message, Throwable cause)
           
ResourceUnknownException(Throwable cause)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 message
cause - the exception cause

ResourceUnknownException

public ResourceUnknownException(Throwable cause)
Parameters:
cause - the exception cause
Method Detail

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.