com.metamatrix.platform.service.api.exception
Class ServiceStateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.metamatrix.core.MetaMatrixRuntimeException
                  extended by com.metamatrix.platform.service.api.exception.ServiceException
                      extended by com.metamatrix.platform.service.api.exception.ServiceStateException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ServiceClosedException, ServiceNotInitializedException, ServiceSuspendedException

public class ServiceStateException
extends ServiceException

This exception will be thrown when a request is made to a service that is not in a ready state.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.metamatrix.core.MetaMatrixRuntimeException
CAUSED_BY_STRING, serialVersionUID
 
Constructor Summary
ServiceStateException()
          No-Arg Constructor
ServiceStateException(java.lang.String message)
          Construct an instance with the message specified.
ServiceStateException(java.lang.String code, java.lang.String message)
          Construct an instance with the message and error code specified.
ServiceStateException(java.lang.Throwable e)
          Constructs an instance of the exception with no detail message but with a single exception.
ServiceStateException(java.lang.Throwable e, java.lang.String message)
          Construct an instance from a message and an exception to chain to this one.
ServiceStateException(java.lang.Throwable e, java.lang.String code, java.lang.String message)
          Construct an instance from a message and a code and an exception to chain to this one.
 
Method Summary
 
Methods inherited from class com.metamatrix.core.MetaMatrixRuntimeException
getChild, getClassShortName, getCode, getIntCode, superPrintStackTrace, superPrintStackTrace, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceStateException

public ServiceStateException()
No-Arg Constructor


ServiceStateException

public ServiceStateException(java.lang.String message)
Construct an instance with the message specified.

Parameters:
message - A message describing the exception

ServiceStateException

public ServiceStateException(java.lang.String code,
                             java.lang.String message)
Construct an instance with the message and error code specified.

Parameters:
message - A message describing the exception
code - The error code

ServiceStateException

public ServiceStateException(java.lang.Throwable e,
                             java.lang.String message)
Construct an instance from a message and an exception to chain to this one.

Parameters:
code - A code denoting the exception
e - An exception to nest within this one

ServiceStateException

public ServiceStateException(java.lang.Throwable e,
                             java.lang.String code,
                             java.lang.String message)
Construct an instance from a message and a code and an exception to chain to this one.

Parameters:
e - An exception to nest within this one
message - A message describing the exception
code - A code denoting the exception

ServiceStateException

public ServiceStateException(java.lang.Throwable e)
Constructs an instance of the exception with no detail message but with a single exception.

Parameters:
e - the exception that is encapsulated by this exception


Copyright © 2009. All Rights Reserved.