org.apache.xbean.kernel
Class KernelOperationTimoutException

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

public class KernelOperationTimoutException
extends RuntimeException

Signifies that a kernel operation timed out before it could be completed. The kernel will always leave the system in a stable state before returning to the caller.

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

Constructor Summary
KernelOperationTimoutException(ServiceName serviceName, String operationName)
          Created a KernelOperationTimoutException for the specified operation on the specified service.
KernelOperationTimoutException(String message, ServiceName serviceName, String operationName)
          Created a KernelOperationTimoutException using the specified custom message.
 
Method Summary
 String getOperationName()
          Gets the name of the operation that timed out.
 ServiceName getServiceName()
          Gets the name of the service for which the operation timed out.
 
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

KernelOperationTimoutException

public KernelOperationTimoutException(ServiceName serviceName,
                                      String operationName)
Created a KernelOperationTimoutException for the specified operation on the specified service.

Parameters:
serviceName - the name of the service for which the operation timed out
operationName - the name of the operation that timed out

KernelOperationTimoutException

public KernelOperationTimoutException(String message,
                                      ServiceName serviceName,
                                      String operationName)
Created a KernelOperationTimoutException using the specified custom message.

Parameters:
message - a custom message for this exception
serviceName - the name of the service for which the operation timed out
operationName - the name of the operation that timed out
Method Detail

getServiceName

public ServiceName getServiceName()
Gets the name of the service for which the operation timed out.

Returns:
the name of the service for which the operation timed out

getOperationName

public String getOperationName()
Gets the name of the operation that timed out.

Returns:
the name of the operation that timed out


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