public class SparkError<T>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SparkError.ErrorCode |
Modifier and Type | Field and Description |
---|---|
protected SparkError.ErrorCode |
_code |
protected T |
_data |
protected java.lang.String |
_message |
Constructor and Description |
---|
SparkError()
The default constructor
|
SparkError(SparkError.ErrorCode errorCode)
The constructor with the error code
|
SparkError(SparkError.ErrorCode errorCode,
java.lang.String message)
The constructor with the error code and error message
|
SparkError(SparkError.ErrorCode errorCode,
java.lang.String message,
T data)
The constructor with the error code and error message
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
protected SparkError.ErrorCode _code
protected java.lang.String _message
protected T _data
public SparkError()
public SparkError(SparkError.ErrorCode errorCode)
errorCode
- the error codepublic SparkError(SparkError.ErrorCode errorCode, java.lang.String message)
errorCode
- the error codemessage
- the error messagepublic SparkError(SparkError.ErrorCode errorCode, java.lang.String message, T data)
errorCode
- the error codemessage
- the error messagedata
- the error data