org.apache.ldap.server.interceptor
Class InterceptorException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.naming.NamingException
              extended byorg.apache.ldap.common.exception.LdapNamingException
                  extended byorg.apache.ldap.server.interceptor.InterceptorException
All Implemented Interfaces:
org.apache.ldap.common.exception.LdapException, java.io.Serializable

public class InterceptorException
extends org.apache.ldap.common.exception.LdapNamingException

A LdapNamingException that wraps uncaught runtime exceptions thrown from Interceptors.

Version:
$Rev: 159316 $, $Date: 2005-03-28 17:20:10 -0500 (Mon, 28 Mar 2005) $
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, Invocation invocation)
          Creates an InterceptorException without a message.
InterceptorException(Interceptor interceptor, Invocation invocation, java.lang.String explanation)
          Creates an InterceptorException with a custom message.
InterceptorException(Interceptor interceptor, Invocation invocation, java.lang.String explanation, java.lang.Throwable rootCause)
          Creates an InterceptorException without a message.
InterceptorException(Interceptor interceptor, Invocation invocation, java.lang.Throwable rootCause)
          Creates an InterceptorException without a message.
 
Method Summary
 Interceptor getInterceptor()
          Gets the interceptor this exception is associated with.
 Invocation getInvocation()
          Gets the invovation object this exception is associated with.
 org.apache.ldap.common.message.ResultCodeEnum getResultCode()
          Will return the resultCode of the root cause if the root cause implements LdapException.
 
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,
                            Invocation invocation)
Creates an InterceptorException without a message.

Parameters:
interceptor - the Interceptor causing the failure
invocation - the Invocation the Interceptor failed on

InterceptorException

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

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

InterceptorException

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

Parameters:
interceptor - the Interceptor causing the failure
invocation - the Invocation the Interceptor failed on
rootCause - the root cause of this exception

InterceptorException

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

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

getInvocation

public Invocation getInvocation()
Gets the invovation object this exception is associated with.

Returns:
the invovation object this exception is associated with

getInterceptor

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

Returns:
the interceptor this exception is associated with

getResultCode

public org.apache.ldap.common.message.ResultCodeEnum getResultCode()
Will return the resultCode of the root cause if the root cause implements LdapException.

See Also:
LdapException.getResultCode()