org.opentox.toxotis.exceptions.impl
Class ServiceInvocationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.opentox.toxotis.exceptions.impl.ServiceInvocationException
All Implemented Interfaces:
Serializable, IServiceInvocationException
Direct Known Subclasses:
BadRequestException, ForbiddenRequest, InternalServerError, MethodNotAllowed, NotFound, RemoteServiceException, Unauthorized

public class ServiceInvocationException
extends Exception
implements IServiceInvocationException

Generic exception includes all kinds of possible exceptional events that might

Author:
Sopasakis Pantelis
See Also:
Serialized Form

Constructor Summary
ServiceInvocationException()
          Creates a new instance of ServiceInvocationException without detail message.
ServiceInvocationException(String msg)
          Constructs an instance of ServiceInvocationException with the specified detail message.
ServiceInvocationException(String message, Throwable cause)
           
ServiceInvocationException(Throwable cause)
           
 
Method Summary
 ErrorReport asErrorReport()
           
 String errorCode()
           
 String getActor()
           
 String getDetails()
           
 ErrorReport getErrorReport()
          Returns the error report related to the current exception that is received by some other remote service.
 int getHttpStatus()
           
 void setActor(String actor)
           
 void setDetails(String details)
           
 void setErrorReport(ErrorReport errorReport)
           
 void setHttpStatus(int httpStatus)
           
 
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
 
Methods inherited from interface org.opentox.toxotis.exceptions.IServiceInvocationException
getMessage
 

Constructor Detail

ServiceInvocationException

public ServiceInvocationException()
Creates a new instance of ServiceInvocationException without detail message.


ServiceInvocationException

public ServiceInvocationException(String msg)
Constructs an instance of ServiceInvocationException with the specified detail message.

Parameters:
msg - the detail message.

ServiceInvocationException

public ServiceInvocationException(Throwable cause)

ServiceInvocationException

public ServiceInvocationException(String message,
                                  Throwable cause)
Method Detail

getHttpStatus

public int getHttpStatus()
Specified by:
getHttpStatus in interface IServiceInvocationException

setHttpStatus

public void setHttpStatus(int httpStatus)
Specified by:
setHttpStatus in interface IServiceInvocationException

getActor

public String getActor()
Specified by:
getActor in interface IServiceInvocationException

setActor

public void setActor(String actor)
Specified by:
setActor in interface IServiceInvocationException

getDetails

public String getDetails()
Specified by:
getDetails in interface IServiceInvocationException

asErrorReport

public ErrorReport asErrorReport()
Specified by:
asErrorReport in interface IServiceInvocationException

getErrorReport

public ErrorReport getErrorReport()
Description copied from interface: IServiceInvocationException
Returns the error report related to the current exception that is received by some other remote service. This error report is a child error report of the error report returned by IServiceInvocationException.asErrorReport().

Specified by:
getErrorReport in interface IServiceInvocationException
Returns:

setDetails

public void setDetails(String details)
Specified by:
setDetails in interface IServiceInvocationException

setErrorReport

public void setErrorReport(ErrorReport errorReport)
Specified by:
setErrorReport in interface IServiceInvocationException

errorCode

public String errorCode()
Specified by:
errorCode in interface IServiceInvocationException


Copyright © 2011-2012 OpenTox. All Rights Reserved.