netscape.ldap.util
Class BadFilterException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by netscape.ldap.util.BadFilterException
All Implemented Interfaces:
java.io.Serializable

public class BadFilterException
extends java.lang.Exception

The exception thrown when there is a problem with either an LDAPFilter or with the File/URL/Buffer form which we're creating the LDAPFilter.

Version:
1.0
See Also:
LDAPFilter, LDAPFilterDescriptor, Serialized Form

Constructor Summary
BadFilterException()
          Creates an Unknown BadFilterException
BadFilterException(java.lang.String s)
          Creates a BadFilterException with the given string
BadFilterException(java.lang.String s, int nErrorLineNumber)
          Creates a BadFilterException with the given string and line number
 
Method Summary
 int getErrorLineNumber()
          If appropriate, return the line number of the ldapfilter.conf file (or url or buffer) where this error occurred.
(package private)  void setErrorLineNumber(int nErrorLineNumber)
          Set the line number in the ldapfilter.conf file/url/buffer where this error occurred.
 java.lang.String toString()
          Returns the exception string.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BadFilterException

public BadFilterException()
Creates an Unknown BadFilterException


BadFilterException

public BadFilterException(java.lang.String s)
Creates a BadFilterException with the given string


BadFilterException

public BadFilterException(java.lang.String s,
                          int nErrorLineNumber)
Creates a BadFilterException with the given string and line number

Method Detail

toString

public java.lang.String toString()
Returns the exception string.

Overrides:
toString in class java.lang.Throwable

getErrorLineNumber

public int getErrorLineNumber()
If appropriate, return the line number of the ldapfilter.conf file (or url or buffer) where this error occurred. This method will return -1 if the line number was not set.


setErrorLineNumber

void setErrorLineNumber(int nErrorLineNumber)
Set the line number in the ldapfilter.conf file/url/buffer where this error occurred.