org.apache.xbean.kernel
Class UnsatisfiedConditionsException

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

public class UnsatisfiedConditionsException
extends Exception

Signifies that there were unsatified conditions during a start or stop operation. The service is left in the STARTING state or STOPPING state.

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

Constructor Summary
UnsatisfiedConditionsException(String message, ServiceName serviceName, Set unsatisfiedConditions)
          Creates an UnsatisfiedConditionsException for the specified service and unsatisfied conditions.
 
Method Summary
 ServiceName getServiceName()
          Gets the name of the service that has unsatisfied conditions.
 Set getUnsatisfiedConditions()
          Gets the conditions that were unsatified when the exception was thrown.
 
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

UnsatisfiedConditionsException

public UnsatisfiedConditionsException(String message,
                                      ServiceName serviceName,
                                      Set unsatisfiedConditions)
Creates an UnsatisfiedConditionsException for the specified service and unsatisfied conditions.

Parameters:
message - information about the unsatisfied conditions
serviceName - the name of the service that has unsatisfied conditions
unsatisfiedConditions - the unsatisfied conditions
Method Detail

getServiceName

public ServiceName getServiceName()
Gets the name of the service that has unsatisfied conditions.

Returns:
the service name

getUnsatisfiedConditions

public Set getUnsatisfiedConditions()
Gets the conditions that were unsatified when the exception was thrown.

Returns:
the unsatified conditions that were ignored


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