public class CommonException extends Exception
| Constructor and Description |
|---|
CommonException(String exceptionCode)
Constructor CommonException
|
CommonException(String exceptionCode,
Exception cause,
String[] tokenNames,
String[] tokenValues)
Constructor CommonException
|
CommonException(String exceptionCode,
String exceptionMessage)
Constructor CommonException
|
CommonException(String exceptionCode,
String[] tokenNames,
String[] tokenValues)
Constructor CommonException
|
CommonException(String exceptionCode,
String message,
Exception[] children) |
CommonException(String exceptionCode,
String exceptionMessage,
Throwable cause)
Constructor CommonException
|
CommonException(String exceptionCode,
Throwable cause)
Constructor CommonException
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBundledException(CommonException ex) |
CommonException[] |
getBundledExceptions()
getBundledExceptions
|
CommonException[] |
getDetailedExceptions()
getDetailedExceptions
|
String |
getExceptionCode()
getExceptionCode
|
Serializable |
getParameter(String name)
Returns the value of parameter 'name' set on the exception
|
String[] |
getTokenNames()
getTokenNames
|
String[] |
getTokenValues()
getTokenValues
|
void |
printStackTrace() |
void |
setBundledExceptions(CommonException[] bundledExceptions)
setBundledExceptions
|
void |
setDetailedExceptions(CommonException[] bundledExceptions)
setDetailedExceptions
|
void |
setExceptionCode(String exceptionCode)
setExceptionCode
|
void |
setParameter(String name,
Serializable value)
Sets an extra parameter on the exception.
|
void |
setTokenNames(String[] tokenNames)
setTokenNames
|
void |
setTokenValues(String[] tokenValues)
setTokenValues
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTracepublic CommonException(String exceptionCode)
exceptionCode - public CommonException(String exceptionCode, Throwable cause)
exceptionCode - cause - public CommonException(String exceptionCode, String exceptionMessage)
exceptionCode - exceptionMessage - public CommonException(String exceptionCode, String exceptionMessage, Throwable cause)
exceptionCode - exceptionMessage - cause - public CommonException(String exceptionCode, String[] tokenNames, String[] tokenValues)
exceptionCode - tokenNames - tokenValues - public CommonException(String exceptionCode, Exception cause, String[] tokenNames, String[] tokenValues)
exceptionCode - cause - tokenNames - tokenValues - public String getExceptionCode()
public void setExceptionCode(String exceptionCode)
exceptionCode - public Serializable getParameter(String name)
public void setParameter(String name, Serializable value)
name - the name of the parametervalue - the value of the parameterpublic CommonException[] getBundledExceptions()
public void setBundledExceptions(CommonException[] bundledExceptions)
bundledExceptions - public CommonException[] getDetailedExceptions()
public void setDetailedExceptions(CommonException[] bundledExceptions)
bundledExceptions - public String[] getTokenNames()
public void setTokenNames(String[] tokenNames)
tokenNames - public String[] getTokenValues()
public void setTokenValues(String[] tokenValues)
tokenValues - public void addBundledException(CommonException ex)
public void printStackTrace()
printStackTrace in class ThrowableHDR Glossary HDR Concept Lists HDR Exceptions HDR Programmer's Guide HDR Implementation Guide HDR Profile Options
Copyright © 2016, 2018, Oracle. All rights reserved