public class ValidationException extends Exception
| Modifier and Type | Field and Description |
|---|---|
protected static String |
NEWLINE
For internal use.
|
| Constructor and Description |
|---|
ValidationException(String s)
Constructs a
ValidationException with a string message. |
ValidationException(String s,
Throwable exception)
Constructs a
ValidationException that wraps an exception. |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getException()
Gets the original exception.
|
String |
getMessage()
Gets the message and the message of the original exception (if set).
|
String |
getMessage(Locale locale)
Gets the message and the message of the original exception (if set).
|
void |
printStackTrace()
Prints the stack trace of this exception and the nested exception (if set) to
System.err. |
void |
printStackTrace(PrintStream out)
Prints the stack trace of this exception and the nested exception (if set) to the specified
PrintStream. |
void |
printStackTrace(PrintWriter out)
Prints the stack trace of this exception and the nested exception (if set) to the specified
PrintWriter. |
void |
setException(Throwable t)
Sets the original exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toStringprotected static final String NEWLINE
public ValidationException(String s)
ValidationException with a string message.s - a description of the exceptionpublic Throwable getException()
public void setException(Throwable t)
t - the original exceptionpublic void printStackTrace(PrintStream out)
PrintStream.printStackTrace in class Throwableout - the PrintStream to which the stack trace is writtenpublic void printStackTrace(PrintWriter out)
PrintWriter.printStackTrace in class Throwableout - the PrintWriter to which the stack trace is writtenpublic void printStackTrace()
System.err.printStackTrace in class Throwablepublic String getMessage()
getMessage in class Throwable| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/pcm/admin/public/api
|
api
|
EP-PIN
|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/semantics/api
|
api
|
EP-PIN
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice