edu.cmu.aura.service
Class GeneralServiceException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--edu.cmu.aura.service.ServiceException
                    |
                    +--edu.cmu.aura.service.GeneralServiceException
All Implemented Interfaces:
java.io.Serializable

public class GeneralServiceException
extends ServiceException

Represents an AuraService GeneralError. Thrown when some general type of error occurs. Services should throw a more specific type of exception when possible.

See Also:
Serialized Form

Field Summary
static int GENERAL_ERROR
           
 
Constructor Summary
GeneralServiceException(int errorCode)
          Creates a new GeneralServiceException.
GeneralServiceException(int errorCode, java.lang.String msg)
          Creates a new GeneralServiceException.
GeneralServiceException(int errorCode, java.lang.String msg, java.lang.Exception subException)
          Creates a new GeneralServiceException.
 
Methods inherited from class edu.cmu.aura.service.ServiceException
getErrorCode, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GENERAL_ERROR

public static final int GENERAL_ERROR
See Also:
Constant Field Values
Constructor Detail

GeneralServiceException

public GeneralServiceException(int errorCode)
Creates a new GeneralServiceException.

Parameters:
errorCode - error code of this exception

GeneralServiceException

public GeneralServiceException(int errorCode,
                               java.lang.String msg)
Creates a new GeneralServiceException.

Parameters:
errorCode - error code of this exception.
msg - message indicating the cause of the problem

GeneralServiceException

public GeneralServiceException(int errorCode,
                               java.lang.String msg,
                               java.lang.Exception subException)
Creates a new GeneralServiceException.

Parameters:
errorCode - error code of this exception
subException - original exception that caused the problem