public class PluginException
extends java.lang.Exception
| Constructor and Description |
|---|
PluginException(java.lang.Exception rootExceptionCause)
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,
boolean rewriteURLs)
Constructs an exception with only a header and body.
|
PluginException(java.lang.String header,
java.lang.String body,
boolean rewriteURLs,
java.lang.Throwable cause) |
PluginException(java.lang.String header,
java.lang.String body,
int errorCode)
An exception for plugin errors.
|
PluginException(java.lang.String header,
java.lang.String body,
int errorCode,
java.lang.Throwable cause) |
PluginException(java.lang.String header,
java.lang.String body,
java.lang.String subText)
An exception for plugin errors.
|
PluginException(java.lang.String header,
java.lang.String body,
java.lang.String subText,
java.lang.Throwable cause) |
PluginException(java.lang.String header,
java.lang.String body,
java.lang.Throwable cause) |
PluginException(java.lang.Throwable rootCause)
Constructs an exception with a root cause.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBody()
Returns the body String.
|
java.lang.String |
getBoldText()
Returns the bolded String.
|
int |
getErrorCode()
Returns the (optional) error code.
|
java.lang.Exception |
getException()
Returns the root cause of this PluginException.
|
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.
|
boolean |
getRewriteURLs()
Returns if URLs should be rewritten.
|
public PluginException(java.lang.String header,
java.lang.String body,
java.lang.String subText)
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"subText - The text to be substitute; for example: "Al.novell" replaces "{0}"public PluginException(java.lang.String header,
java.lang.String body,
java.lang.String subText,
java.lang.Throwable cause)
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,
java.lang.Throwable cause)
public PluginException(java.lang.String header,
java.lang.String body,
boolean rewriteURLs)
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"rewriteURLs - boolean should URLs be rewritten as non link textpublic PluginException(java.lang.String header,
java.lang.String body,
boolean rewriteURLs,
java.lang.Throwable cause)
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,
int errorCode,
java.lang.Throwable cause)
public PluginException(java.lang.Exception rootExceptionCause)
rootExceptionCause - - 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)
todo this method should be replaced with the PluginException(Throwable) methodpublic PluginException(java.lang.Throwable rootCause)
rootCause - - 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 java.lang.String getHeader()
public boolean getRewriteURLs()
public java.lang.String getBody()
public java.lang.String getBoldText()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String getLocalizedMessage()
getLocalizedMessage in class java.lang.Throwablepublic java.lang.Exception getException()
public int getErrorCode()
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.