issrg.utils
Class RFC2253ParsingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by issrg.utils.EmbeddedException
              extended by issrg.utils.RFC2253ParsingException
All Implemented Interfaces:
java.io.Serializable

public class RFC2253ParsingException
extends EmbeddedException

This exception is thrown by RFC2253 parser if there is a problem with the LDAP DN string. It can report the position in the DN where the problem occured.

See Also:
Serialized Form

Constructor Summary
RFC2253ParsingException()
           
RFC2253ParsingException(int pos, java.lang.String msg, java.lang.Throwable ex)
          This constructor builds a RFC2253ParsingException given the message, the root cause and the position in the string where the error occured.
RFC2253ParsingException(java.lang.String msg)
           
RFC2253ParsingException(java.lang.String msg, java.lang.Throwable ex)
          This constructor builds a RFC2253ParsingException given the message and the root cause.
 
Method Summary
 int getErrorPos()
          Get the position in the string, where the parse error occured.
 
Methods inherited from class issrg.utils.EmbeddedException
getEmbedded, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RFC2253ParsingException

public RFC2253ParsingException()

RFC2253ParsingException

public RFC2253ParsingException(java.lang.String msg)

RFC2253ParsingException

public RFC2253ParsingException(java.lang.String msg,
                               java.lang.Throwable ex)
This constructor builds a RFC2253ParsingException given the message and the root cause.

Parameters:
msg - - the human-readable description of the problem
ex - - the Throwable that caused the problem

RFC2253ParsingException

public RFC2253ParsingException(int pos,
                               java.lang.String msg,
                               java.lang.Throwable ex)
This constructor builds a RFC2253ParsingException given the message, the root cause and the position in the string where the error occured.

Parameters:
pos - - the position in the DN string where the problem occured
msg - - the human-readable description of the problem
ex - - the Throwable that caused the problem
Method Detail

getErrorPos

public int getErrorPos()
Get the position in the string, where the parse error occured. It can be -1, if the position wasn't specified at construction time.