org.apache.directory.server.core.interceptor
Class InterceptorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.naming.NamingException
              extended by org.apache.directory.server.core.interceptor.InterceptorException
All Implemented Interfaces:
java.io.Serializable

public class InterceptorException
extends javax.naming.NamingException

A NamingException that wraps uncaught runtime exceptions thrown from Interceptors.

Version:
$Rev: 434579 $, $Date: 2006-08-24 20:19:11 -0400 (Thu, 24 Aug 2006) $
Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.naming.NamingException
remainingName, resolvedName, resolvedObj, rootException
 
Constructor Summary
InterceptorException(Interceptor interceptor)
          Creates an InterceptorException without a message.
InterceptorException(Interceptor interceptor, java.lang.String explanation)
          Creates an InterceptorException with a custom message.
InterceptorException(Interceptor interceptor, java.lang.String explanation, java.lang.Throwable rootCause)
          Creates an InterceptorException without a message.
InterceptorException(Interceptor interceptor, java.lang.Throwable rootCause)
          Creates an InterceptorException without a message.
 
Method Summary
 Interceptor getInterceptor()
          Gets the interceptor this exception is associated with.
 
Methods inherited from class javax.naming.NamingException
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterceptorException

public InterceptorException(Interceptor interceptor)
Creates an InterceptorException without a message.

Parameters:
interceptor - the Interceptor causing the failure

InterceptorException

public InterceptorException(Interceptor interceptor,
                            java.lang.String explanation)
Creates an InterceptorException with a custom message.

Parameters:
interceptor - the Interceptor causing the failure
explanation - String explanation of why the Interceptor failed

InterceptorException

public InterceptorException(Interceptor interceptor,
                            java.lang.Throwable rootCause)
Creates an InterceptorException without a message.

Parameters:
interceptor - the Interceptor causing the failure
rootCause - the root cause of this exception

InterceptorException

public InterceptorException(Interceptor interceptor,
                            java.lang.String explanation,
                            java.lang.Throwable rootCause)
Creates an InterceptorException without a message.

Parameters:
interceptor - the Interceptor causing the failure
explanation - String explanation of why the Interceptor failed
rootCause - the root cause of this exception
Method Detail

getInterceptor

public Interceptor getInterceptor()
Gets the interceptor this exception is associated with.

Returns:
the interceptor this exception is associated with