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 String |
CAUSE_MESSAGE |
static String |
PANEL_LABEL |
protected HashMap<String,String> |
values |
code, formatString, messageKey
Constructor and Description |
---|
PanelBaseException()
Creates and initializes a new instance of
PanelBaseException . |
PanelBaseException(Exception e)
Creates and initializes a new instance of
PanelBaseException . |
PanelBaseException(Exception e,
String panelLabel)
Creates and initializes a new instance of
PanelBaseException . |
Modifier and Type | Method and Description |
---|---|
String |
getPanelLabel()
Gets the label of the panel which is the source of this exception, or
null if hasn't been defined. |
Throwable |
initCause(Throwable cause) |
protected void |
initialize()
Initializes a
PanelBaseException with the needed information. |
void |
setPanelLabel(String panelLabel)
Sets the label of the panel which is the source of this exception.
|
protected Map<String,String> |
values() |
getCode, getFormatString, getLocalizedMessage, getLocalizedMessage, getLocalizedMessageStack, getLocalizedMessageStack, getMessage, getMessage, getMessageKey, getMessageStack, getMessageStack, getValue, iterator, setCode, setFormatString, setMessageKey, setTranslator, setTranslator, setValue
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final String PANEL_LABEL
public static final String CAUSE_MESSAGE
public PanelBaseException()
Creates and initializes a new instance of PanelBaseException
.
public PanelBaseException(Exception e)
Creates and initializes a new instance of PanelBaseException
.
e
- the exception to be wrapperedprotected Map<String,String> values()
values
in class BaseException
protected void initialize()
Initializes a PanelBaseException
with the needed information.
public 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(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 exception