|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.mentata.l3d.L3DException
An exception thrown within an L3D application. This class extends the standard Java Exception class and is used to define and manage unexpected behaviors or invalid cases in JLDAP or L3D method execution. On creation, an L3DException accepts numeric identifiers for error codes and/or a textual hint. Numeric identifiers are used to access a general description of the error from localized properties files.
| Constructor Summary | |
L3DException(int code)
Constructs an exception using properties defined for the given code. |
|
L3DException(int code,
String hint)
Constructs an exception using properties defined for the given code. |
|
L3DException(int code,
String hint,
Throwable cause)
Constructs an exception using given code, cause, and hint. |
|
| Method Summary | |
String |
getHint()
Returns the hint assigned to the exception. |
int |
getL3DCode()
Returns the code assigned to the exception. |
String |
getL3DMessage()
Returns the message assigned to the exception. |
int |
getLDAPCode()
Returns the code assigned to a causing exception. |
String |
getLDAPMessage()
Returns the message assigned to a causing LDAP exception. |
protected Locale |
getLocale()
Returns the assigned locale for the exception. |
void |
setLocale(Locale locale)
Configures the locale for the exception. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public L3DException(int code)
code - the new error's identifier
public L3DException(int code,
String hint)
code - the new error's identifierhint - a key piece of information about the error
public L3DException(int code,
String hint,
Throwable cause)
code - the new error's identifierhint - a key piece of information about the errorcause - the exception that provoked this L3D exception| Method Detail |
public int getL3DCode()
public int getLDAPCode()
public String getL3DMessage()
public String getLDAPMessage()
public String getHint()
public void setLocale(Locale locale)
protected Locale getLocale()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||