public class PanelBaseException extends BaseException
Adapts any Java exception produced working with panels to be dealed in as a BaseException.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CAUSE_MESSAGE |
static java.lang.String |
PANEL_LABEL |
protected java.util.HashMap<java.lang.String,java.lang.String> |
values |
code, formatString, messageKey| Constructor and Description |
|---|
PanelBaseException()
Creates and initializes a new instance of
PanelBaseException. |
PanelBaseException(java.lang.Exception e)
Creates and initializes a new instance of
PanelBaseException. |
PanelBaseException(java.lang.Exception e,
java.lang.String panelLabel)
Creates and initializes a new instance of
PanelBaseException. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPanelLabel()
Gets the label of the panel which is the source of this exception, or
null if hasn't been defined. |
java.lang.Throwable |
initCause(java.lang.Throwable cause) |
protected void |
initialize()
Initializes a
PanelBaseException with the needed information. |
void |
setPanelLabel(java.lang.String panelLabel)
Sets the label of the panel which is the source of this exception.
|
protected java.util.Map<java.lang.String,java.lang.String> |
values() |
containsCause, getCode, getFormatString, getHTMLMessageStack, getLocalizedMessage, getLocalizedMessage, getLocalizedMessageStack, getLocalizedMessageStack, getMessage, getMessage, getMessageKey, getMessageStack, getMessageStack, getMessageStack, getValue, iterator, setCode, setFormatString, setMessageKey, setTranslator, setTranslator, setValueprotected java.util.HashMap<java.lang.String,java.lang.String> values
public static final java.lang.String PANEL_LABEL
public static final java.lang.String CAUSE_MESSAGE
public PanelBaseException()
Creates and initializes a new instance of PanelBaseException.
public PanelBaseException(java.lang.Exception e)
Creates and initializes a new instance of PanelBaseException.
e - the exception to be wrapperedpublic PanelBaseException(java.lang.Exception e,
java.lang.String panelLabel)
Creates and initializes a new instance of PanelBaseException.
e - the exception to be wrapperedpanelLabel - label of the panel which is the source of the exception wrapperedprotected java.util.Map<java.lang.String,java.lang.String> values()
values in class BaseExceptionprotected void initialize()
Initializes a PanelBaseException with the needed information.
public java.lang.String getPanelLabel()
Gets the label of the panel which is the source of this exception, or
null if hasn't been defined.
public void setPanelLabel(java.lang.String panelLabel)
Sets the label of the panel which is the source of this exception.
panelLabel - label of the panel which is the source of this exceptionpublic java.lang.Throwable initCause(java.lang.Throwable cause)
initCause in class java.lang.Throwable