com.sibvisions.rad.server.http.rest.service
Class RestServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sibvisions.rad.server.http.rest.service.RestServiceException
All Implemented Interfaces:
Serializable

public class RestServiceException
extends Exception

The RestServiceException is the custom Exception for REST service calls.

See Also:
Serialized Form

Constructor Summary
RestServiceException(int pStatus)
          Creates a new instance of RestServiceException for the given status code.
RestServiceException(int pStatus, IBean pDetails)
          Creates a new instance of RestServiceException for the given status code and details.
 
Method Summary
 IBean getDetails()
          Gets the details.
 int getStatus()
          Gets the status code.
 
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

RestServiceException

public RestServiceException(int pStatus)
Creates a new instance of RestServiceException for the given status code.

Parameters:
pStatus - the status code

RestServiceException

public RestServiceException(int pStatus,
                            IBean pDetails)
Creates a new instance of RestServiceException for the given status code and details.

Parameters:
pStatus - the status code
pDetails - additional error details
Method Detail

getStatus

public int getStatus()
Gets the status code.

Returns:
the status code

getDetails

public IBean getDetails()
Gets the details.

Returns:
the details


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.