public class Error
extends java.lang.Object
SystemComponent
.Error.ErrorLevel
Error.ErrorLevel
Modifier and Type | Class and Description |
---|---|
static class |
Error.ErrorLevel
Representing the severity an internal error can be of.
|
Constructor and Description |
---|
Error(SystemComponent component,
Error.ErrorLevel level)
Creates a new
Error containing information about the
SystemComponent the error occurred in, as well as the severity of
the error in form of an Error.ErrorLevel . |
Error(SystemComponent component,
Error.ErrorLevel level,
java.lang.String message)
Creates a new
Error containing information about the
SystemComponent the error occurred in, the severity of the error
in form of an Error.ErrorLevel , as well as a message describing the
error. |
Modifier and Type | Method and Description |
---|---|
Error.ErrorLevel |
getLevel()
Returns an
Error.ErrorLevel describing the severity of the error. |
java.lang.String |
getMessage()
Returns a message describing the
Errorr . |
SystemComponent |
getSystemComponent()
Returns the
SystemComponent the error occurred in. |
java.lang.String |
toString() |
public Error(SystemComponent component, Error.ErrorLevel level)
Error
containing information about the
SystemComponent
the error occurred in, as well as the severity of
the error in form of an Error.ErrorLevel
.component
- SystemComponent
the error occurred in. (should be
"this" in most cases)level
- Error.ErrorLevel
stating the severity of the error.public Error(SystemComponent component, Error.ErrorLevel level, java.lang.String message)
Error
containing information about the
SystemComponent
the error occurred in, the severity of the error
in form of an Error.ErrorLevel
, as well as a message describing the
error.component
- SystemComponent
the error occurred in. (should be
"this" in most cases)level
- Error.ErrorLevel
stating the severity of the error.message
- describing the type of error.public SystemComponent getSystemComponent()
SystemComponent
the error occurred in.SystemComponent
the error occurred in.public Error.ErrorLevel getLevel()
Error.ErrorLevel
describing the severity of the error.Error.ErrorLevel
describing the severity of the error.public java.lang.String getMessage()
Errorr
.Error
.public java.lang.String toString()
toString
in class java.lang.Object