public class MessagingException extends Exception implements Serializable
The MessagingException is the root exception of the Messaging API.
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_CATEGORY |
static String |
ERROR_CODE |
protected String |
errorCategory |
protected String |
errorCode |
protected String |
errorSource |
protected Message |
messageInError |
protected MessageKey |
messageInErrorKey |
| Constructor and Description |
|---|
MessagingException(Exception nestedException)
Constructs a
MessagingException wrapping a nested exception. |
MessagingException(Message messageInError,
Exception nestedException)
Constructs a
MessagingException with a reference to the message in error and wrapping a nested
exception. |
MessagingException(MessageKey messageInErrorKey,
Exception nestedException)
Constructs a
MessagingException with a message key of the message in error and wrapping a nested
exception. |
MessagingException(MessageKey messageInErrorKey,
String errorText)
Constructs a
MessagingException with a message key of the message in error and an error text. |
MessagingException(Message messageInError,
String errorText)
Constructs a
MessagingException with a reference to the message in error and an error text. |
MessagingException(String errorText)
Constructs a
MessagingException with an error text. |
MessagingException(String errorText,
Exception nestedException)
Constructs a
MessagingException wrapping a nested exception. |
MessagingException(String message,
Throwable cause)
Constructs a MessagingException with a message and a throwable cause.
|
MessagingException(Throwable cause)
Constructs a MessagingException with a throwable cause.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorCategory() |
String |
getErrorCode() |
String |
getErrorSource() |
String |
getMessageInErrorId()
Returns the message ID of the message that this exception is referring to.
|
MessageKey |
getMessageInErrorKey()
Returns the message ID of the message that this exception is referring to.
|
Exception |
getNestedException()
Returns the nested exception that is wrapped in this exception.
|
void |
setErrorCategory(String string) |
void |
setErrorCode(String string) |
void |
setErrorSource(String source) |
void |
setNestedException(Exception ex) |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic static final String ERROR_CATEGORY
public static final String ERROR_CODE
protected Message messageInError
protected MessageKey messageInErrorKey
protected String errorSource
protected String errorCategory
protected String errorCode
public MessagingException(String errorText)
MessagingException with an error text. Whenever possible, a constructor that also takes
a reference to the message in error as a parameter should be preferred.errorText - is a free form description of the error.public MessagingException(Exception nestedException)
MessagingException wrapping a nested exception. Whenever possible, a constructor that
also takes a reference to the message in error as a parameter should be preferred.nestedException - the causing exception that is to be wrapped in this exception.public MessagingException(String errorText, Exception nestedException)
MessagingException wrapping a nested exception. A free error text can be defined with
the first parameter.errorText - the error text of the MessagingException object.nestedException - the causing exception that is to be wrapped in this exception.public MessagingException(Message messageInError, String errorText)
MessagingException with a reference to the message in error and an error text.messageInError - is the message that this exception is referring to.errorText - is a free form description of the error.public MessagingException(Message messageInError, Exception nestedException)
MessagingException with a reference to the message in error and wrapping a nested
exception.messageInError - is the message that this exception is referring to.nestedException - the causing exception that is to be wrapped in this exception.public MessagingException(MessageKey messageInErrorKey, String errorText)
MessagingException with a message key of the message in error and an error text.messageInErrorKey - is the message key of the message that this exception is referring to.errorText - is a free form description of the error.public MessagingException(MessageKey messageInErrorKey, Exception nestedException)
MessagingException with a message key of the message in error and wrapping a nested
exception.messageInErrorKey - is the message key of the message that this exception is referring to.nestedException - the causing exception that is to be wrapped in this exception.public MessagingException(Throwable cause)
cause - Throwable causepublic String getMessageInErrorId()
null if there is no
message associated with this exception.public MessageKey getMessageInErrorKey()
null if there is no
message associated with this exception.public Exception getNestedException()
null if no exception was
wrapped in this exception.public void setNestedException(Exception ex)
public String getErrorCategory()
public String getErrorCode()
public String getErrorSource()
public void setErrorCategory(String string)
public void setErrorCode(String string)
public void setErrorSource(String source)
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] SAP_XIAF
|
[sap.com] com.sap.aii.af.ifc.facade
|
api
|
BC-XI
|
Copyright 2019 SAP AG Complete Copyright Notice