org.apache.xbean.kernel
Class KernelOperationInterruptedException

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

public class KernelOperationInterruptedException
extends RuntimeException

Signifies that a thread carrying out a kernel operation was interrupted. 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
KernelOperationInterruptedException(InterruptedException cause, ServiceName serviceName, String operationName)
          Created a KernelOperationInterruptedException for the specified operation on the specified service.
KernelOperationInterruptedException(String message, InterruptedException cause, ServiceName serviceName, String operationName)
          Created a KernelOperationInterruptedException with a custom message.
 
Method Summary
 String getOperationName()
          Gets the name of the operation that was interrupted.
 ServiceName getServiceName()
          Gets the name of the service for which the operation was interrupted.
 
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

KernelOperationInterruptedException

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

Parameters:
cause - the InterruptedException that casused the kernel operation to be interrupted
serviceName - the name of the service for which the operation was interrupted
operationName - the name of the operation that was interrupted

KernelOperationInterruptedException

public KernelOperationInterruptedException(String message,
                                           InterruptedException cause,
                                           ServiceName serviceName,
                                           String operationName)
Created a KernelOperationInterruptedException with a custom message.

Parameters:
message - a custom message for this exception
cause - the InterruptedException that casused the kernel operation to be interrupted
serviceName - the name of the service for which the operation was interrupted
operationName - the name of the operation that was interrupted
Method Detail

getServiceName

public ServiceName getServiceName()
Gets the name of the service for which the operation was interrupted.

Returns:
the name of the service for which the operation was interrupted

getOperationName

public String getOperationName()
Gets the name of the operation that was interrupted.

Returns:
the name of the operation that was interrupted


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