public abstract class ExceptionDescription
extends java.lang.Object
Most exceptions produced in a layer, has common information (layer name, driver name, error description, error code).
An ExceptionDescription
can provide this extra information describing the cause of the
error, and more useful information to give to the user that works with a layer.
Constructor and Description |
---|
ExceptionDescription()
Sets the name of the layer (if a layer was using) with that this exception was produced.
|
ExceptionDescription(int errorCode,
java.lang.String errorDescription)
Creates a new
ExceptionDescription with the useful values initialized. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDriverName()
Gets the name of the driver (if a driver was using) which this exception was produced.
|
int |
getErrorCode()
Gets the code which identifies the kind of error which is the cause of this exception.
|
java.lang.String |
getErrorDescription()
Gets the description about the error which produced this exception.
|
abstract java.lang.String |
getHtmlErrorMessage()
Returns a message that describes the error which produced this exception, formatted in HTML code.
|
java.lang.String |
getLayerName()
Gets the name of the layer (if a layer was using) with that this exception was produced.
|
void |
setCode(int errorCode)
Sets the code which identifies the kind of error which is the cause of this exception.
|
void |
setDescription(java.lang.String description)
Sets the description about the error which produced this exception.
|
void |
setDriverName(java.lang.String driverName)
Sets the name of the driver (if a driver was using) which this exception was produced.
|
void |
setLayerName(java.lang.String layerName)
Sets the name of the layer (if a layer was using) with that this exception was produced.
|
public ExceptionDescription()
Sets the name of the layer (if a layer was using) with that this exception was produced.
layerName
- the name of the layer (if a layer was using) with that this exception was producedpublic ExceptionDescription(int errorCode, java.lang.String errorDescription)
Creates a new ExceptionDescription
with the useful values initialized.
errorCode
- code which identifies the kind of error which is the cause of this exceptionerrorDescription
- description about the error which produced this exceptionpublic java.lang.String getDriverName()
Gets the name of the driver (if a driver was using) which this exception was produced.
public void setDriverName(java.lang.String driverName)
Sets the name of the driver (if a driver was using) which this exception was produced.
driverName
- the name of the driver (if a driver was using) which this exception was producedpublic java.lang.String getLayerName()
Gets the name of the layer (if a layer was using) with that this exception was produced.
public void setLayerName(java.lang.String layerName)
Sets the name of the layer (if a layer was using) with that this exception was produced.
layerName
- the name of the layer (if a layer was using) with that this exception was producedpublic void setCode(int errorCode)
Sets the code which identifies the kind of error which is the cause of this exception.
errorCode
- code which identifies the kind of error which is the cause of this exceptionpublic void setDescription(java.lang.String description)
Sets the description about the error which produced this exception.
description
- description about the error which produced this exceptionpublic int getErrorCode()
Gets the code which identifies the kind of error which is the cause of this exception.
public java.lang.String getErrorDescription()
Gets the description about the error which produced this exception.
public abstract java.lang.String getHtmlErrorMessage()
Returns a message that describes the error which produced this exception, formatted in HTML code.