public class PublishingException
extends java.lang.Exception
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
| Constructor and Description |
|---|
PublishingException()
Constructs a new PublishingException.
|
PublishingException(java.lang.String pStr)
Constructs a new PublishingException with the given
explanation.
|
PublishingException(java.lang.String pResourceBundleName,
java.lang.String pResourceKey,
java.lang.Object[] pResourceParameters)
Constructs a new PublishingException with the given
resource information.
|
PublishingException(java.lang.String pResourceBundleName,
java.lang.String pResourceKey,
java.lang.Object[] pResourceParameters,
java.lang.Throwable pSourceException)
Constructs a new PublishingException with the given
exception and appropriate resource information.
|
PublishingException(java.lang.String pStr,
java.lang.Throwable pSourceException)
Constructs a new PublishingException with the given
explanation and source exception.
|
PublishingException(java.lang.Throwable pSourceException)
Constructs a new PublishingException.
|
| Modifier and Type | Method and Description |
|---|---|
protected static java.lang.String |
createMessage(java.lang.String pResourceBundleName,
java.lang.String pResourceKey,
java.lang.Object[] pResourceParameters)
Returns the resource string already formatted.
|
java.lang.String |
createUserMessage()
Returns the resource string already formatted based on user locale.
|
java.lang.String |
createUserMessage(java.util.Locale pLocale)
Returns the resource string already formatted based on given locale.
|
java.lang.String |
getErrorCode()
Get property
errorCode. |
java.lang.String |
getResourceBundleName()
Returns property resourceBundleName.
|
java.lang.String |
getResourceKey()
Returns property resourceKey.
|
java.lang.Object[] |
getResourceParameters()
Returns property resourceParameters.
|
void |
setErrorCode(java.lang.String pErrorCode)
Set property
errorCode. |
public PublishingException()
public PublishingException(java.lang.String pStr)
public PublishingException(java.lang.Throwable pSourceException)
pSourceException - the initial exception which was the root
cause of the problempublic PublishingException(java.lang.String pStr,
java.lang.Throwable pSourceException)
pSourceException - the initial exception which was the root
cause of the problempublic PublishingException(java.lang.String pResourceBundleName,
java.lang.String pResourceKey,
java.lang.Object[] pResourceParameters)
pResourceBundleName - the resource bundle containing the exception messagepResourceKey - the resource look-up key for the exception messagepResourceParameters - parameters to format into the resource string to create the exception messagepublic PublishingException(java.lang.String pResourceBundleName,
java.lang.String pResourceKey,
java.lang.Object[] pResourceParameters,
java.lang.Throwable pSourceException)
pResourceBundleName - the resource bundle containing the exception messagepResourceKey - the resource look-up key for the exception messagepResourceParameters - parameters to format into the resource string to create the exception messagepException - the root exceptionpublic void setErrorCode(java.lang.String pErrorCode)
errorCode. This is the associated error code
for this message. Currently for exceptions which report codes this is
the corresponding resource bundle key.pErrorCode - new value to set, may be nullpublic java.lang.String getErrorCode()
errorCode. This is the associated error code
for this message. Currently for exceptions which report codes this is
the corresponding resource bundle key.errorCode, may be nullpublic java.lang.String getResourceBundleName()
public java.lang.String getResourceKey()
public java.lang.Object[] getResourceParameters()
protected static java.lang.String createMessage(java.lang.String pResourceBundleName,
java.lang.String pResourceKey,
java.lang.Object[] pResourceParameters)
public java.lang.String createUserMessage()
public java.lang.String createUserMessage(java.util.Locale pLocale)