netscape.ldap.util

Class BadFilterException


public class BadFilterException
extends 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.

See Also:
LDAPFilter, LDAPFilterDescriptor

Constructor Summary

BadFilterException()
Creates an Unknown BadFilterException
BadFilterException(String s)
Creates a BadFilterException with the given string
BadFilterException(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.
String
toString()
Returns the exception string.

Constructor Details

BadFilterException

public BadFilterException()
Creates an Unknown BadFilterException


BadFilterException

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


BadFilterException

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

Method Details

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.


toString

public String toString()
Returns the exception string.