public class PortalRuntimeException extends RuntimeException
IPortalException
interface providing methods for logging and HTML rendering of the
exception.PortalException,
PortalComponentException,
Serialized Form| Constructor and Description |
|---|
PortalRuntimeException(String s)
Constructor with a String message.
|
PortalRuntimeException(String s,
Throwable exception)
Exception wrapper constructor.
|
PortalRuntimeException(Throwable exception)
Exception wrapper constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
Returns the cause of this exception.
|
Throwable |
getException()
Deprecated.
Please use getCause() instead.
|
static void |
printCausedBy(boolean printcause) |
void |
printStackTrace()
Prints the stack trace of this exception and any chained exception to System.err
|
void |
printStackTrace(PrintStream s)
Prints the stack trace of this exception and any chained exception to the specified
print stream.
|
void |
printStackTrace(PrintWriter s)
Prints the stack trace of this exception and any chained exception to the specified
print writer.
|
void |
setCause(Throwable cause)
Set the cause of this exception.
|
void |
setException(Throwable t)
Deprecated.
Please use setCause() instead.
|
String |
toHTML()
Returns the message and the stack of the exception.
|
String |
toText() |
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toStringpublic PortalRuntimeException(String s)
s - a short description of the exception.public PortalRuntimeException(Throwable exception)
exception - a Throwable object referring to the original
exception.public Throwable getException()
public void setException(Throwable t)
t - the orginal exceptionpublic void setCause(Throwable cause)
cause - The cause of this exception.public Throwable getCause()
public void printStackTrace()
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter s)
printStackTrace in class Throwables - PrintWriter to use for outputpublic void printStackTrace(PrintStream s)
printStackTrace in class Throwables - PrintWriter to use for outputpublic String toHTML()
public String toText()
public static void printCausedBy(boolean printcause)
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com]
|
default
|
EP-PIN-PRT
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/lib/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