org.apache.xbean.kernel
Class KernelOperationInterruptedException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.apache.xbean.kernel.KernelOperationInterruptedException
All Implemented Interfaces:
java.io.Serializable

public class KernelOperationInterruptedException
extends java.lang.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
Version:
$Id$
Author:
Dain Sundstrom
See Also:
Serialized Form

Constructor Summary
KernelOperationInterruptedException(java.lang.InterruptedException cause, ServiceName serviceName, java.lang.String operationName)
          Created a KernelOperationInterruptedException for the specified operation on the specified service.
KernelOperationInterruptedException(java.lang.String message, java.lang.InterruptedException cause, ServiceName serviceName, java.lang.String operationName)
          Created a KernelOperationInterruptedException with a custom message.
 
Method Summary
 java.lang.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(java.lang.InterruptedException cause,
                                           ServiceName serviceName,
                                           java.lang.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(java.lang.String message,
                                           java.lang.InterruptedException cause,
                                           ServiceName serviceName,
                                           java.lang.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 java.lang.String getOperationName()
Gets the name of the operation that was interrupted.

Returns:
the name of the operation that was interrupted


Copyright © {inceptionYear}-2006 Apache Software Foundation. All Rights Reserved.