public class RuleException extends Exception
Constructor and Description |
---|
RuleException()
default constructor
|
RuleException(Exception exception)
constructs RuleException object with specified root cause
|
RuleException(Exception exception,
String messageId,
String message)
Creates a RuleException object with a specified message Id, message
and the root cause.
|
RuleException(String message)
constructs RuleException object with specified message
|
RuleException(String message,
Exception exception)
constructs a ruleException object with specified message and root cause
|
RuleException(String messageId,
String message)
constructs RuleException object with specified message Id and a message
|
RuleException(String message,
String location,
Exception exception)
Creates a RuleException with the specified message and the location of
the message and the root cause.
|
RuleException(String messageId,
String message,
String location,
Exception exception)
Creates a RuleException with the specified message Id and message and
the location of the message and the root cause.
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
Returns the Id of the message, If the exception is not created with an
Id, this returns a
null |
String |
getLocation()
Return the location of the exception set using the
setLocation(String) method.
|
Exception |
getRootException()
Get the root exception.
|
void |
setLocation(String location)
Sets the location of the exception.
|
String |
toString()
return Stringequivalent of this object
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
protected String location
public RuleException()
public RuleException(Exception exception)
exception
- - Exception objectpublic RuleException(String message)
message
- - exception messagepublic RuleException(String messageId, String message)
messageId
- The Id of the exception messagemessage
- -
exception messagepublic RuleException(String message, Exception exception)
message
- - exception messageexception
- - Exception objectpublic RuleException(Exception exception, String messageId, String message)
exception
- The root cause Exception objectmessageId
- The Id of the exception messagemessage
- the actual exception messagepublic RuleException(String message, String location, Exception exception)
message
- exception messagelocation
- the location where exception occurredexception
- public RuleException(String messageId, String message, String location, Exception exception)
messageId
- The Id of the exception messagemessage
- exception messagelocation
- the location where exception occurredexception
- public Exception getRootException()
public String getLocation()
public void setLocation(String location)
location
- the location to setpublic String getId()
null
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] BRMS-FACADE
|
[sap.com] tc/brms/facade
|
api
|
BC-BMT-BRM-ENG
|
Copyright 2018 SAP AG Complete Copyright Notice