|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.novell.emframe.dev.PluginException
Exception generated by a plug-in.
Constructor Summary | |
PluginException(java.lang.Exception e)
Constructs an exception with a root cause. |
|
PluginException(java.lang.String header,
java.lang.String body)
Constructs an exception with only a header and body. |
|
PluginException(java.lang.String header,
java.lang.String body,
int errorCode)
An exception for authentication errors - with an error code. |
|
PluginException(java.lang.String header,
java.lang.String body,
java.lang.String boldText)
An exception for authentication errors. |
Method Summary | |
java.lang.String |
getBody()
Returns the body String. |
java.lang.String |
getBoldText()
Returns the bolded String. |
int |
getErrorCode()
Returns the error code. |
java.lang.Exception |
getException()
Returns the root cause of the exception. |
java.lang.String |
getHeader()
Returns the header String. |
java.lang.String |
getLocalizedMessage()
Returns the localized message of the exception. |
java.lang.String |
getMessage()
Returns the message of the exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, 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 PluginException(java.lang.Exception e)
e
- - Allow default error handling to take place; SPI and Namespace
exceptions will show nice error message; others will show a system error and a stack trace
(in a details button)public PluginException(java.lang.String header, java.lang.String body)
header
- The error header; if this parameter is null, the header is "Error"body
- The body of the error; for example: "{0} is not a valid user"public PluginException(java.lang.String header, java.lang.String body, int errorCode)
header
- The error header; if this parameter is null, the header is "Error"body
- The body of the error; for example: "{0} is not a valid user"errorCode
- The error code; for example: "-601"public PluginException(java.lang.String header, java.lang.String body, java.lang.String boldText)
header
- The error header; if this parameter is null, the header is "Error"body
- The body of the error; for example: "{0} is not a valid user"boldText
- The text to be bolded; for example: "Al.novell"Method Detail |
public java.lang.String getBody()
public java.lang.String getBoldText()
public int getErrorCode()
public java.lang.Exception getException()
public java.lang.String getHeader()
public java.lang.String getLocalizedMessage()
public java.lang.String getMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |