public abstract class DataException
extends com.sap.cloud.server.odata.core.ExceptionBase
Abstract base class for data exceptions.
Modifier | Constructor and Description |
---|---|
|
DataException()
Default constructor.
|
protected |
DataException(java.lang.String message,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
boolean |
getSafeMessage()
Return can the
message property be safely delivered to untrusted clients. |
DataException |
safe()
Mark this exception as having a message, that can be safely delivered to untrusted clients.
|
void |
setSafeMessage(boolean value)
Set can the
message property be safely delivered to untrusted clients. |
getCause, getMessage, setCause, setMessage, toString
protected DataException(java.lang.String message, java.lang.Throwable cause)
public DataException()
Default constructor.
public boolean getSafeMessage()
Return can the message
property be safely delivered to untrusted clients.
message
property be safely delivered to untrusted clients.public DataException safe()
Mark this exception as having a message, that can be safely delivered to untrusted clients.
public void setSafeMessage(boolean value)
Set can the message
property be safely delivered to untrusted clients.
value
- Can the message
property be safely delivered to untrusted clients.