org.apache.xbean.kernel
Class IllegalServiceStateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.xbean.kernel.IllegalServiceStateException
All Implemented Interfaces:
Serializable

public class IllegalServiceStateException
extends Exception

Indicates an operation was called on a service in a state that does not allow that operation to be called.

Since:
2.0
Author:
Dain Sundstrom
See Also:
Serialized Form

Constructor Summary
IllegalServiceStateException(String message, ServiceName serviceName)
          Creates an IllegalServiceStateException.
 
Method Summary
 ServiceName getServiceName()
          Gets the name of the service that caused this 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

IllegalServiceStateException

public IllegalServiceStateException(String message,
                                    ServiceName serviceName)
Creates an IllegalServiceStateException.

Parameters:
message - information about why the service is in an illegal state
serviceName - the name of the service
Method Detail

getServiceName

public ServiceName getServiceName()
Gets the name of the service that caused this exception.

Returns:
the service name


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.