public class Error extends Object
Modifier and Type | Field and Description |
---|---|
protected Integer |
code |
protected String |
layer |
protected String |
msg |
protected boolean |
root |
protected ErrorType |
type |
Constructor and Description |
---|
Error() |
Error(ErrorType type,
String message) |
Error(ErrorType type,
String message,
Integer code) |
Error(ErrorType type,
String layer,
String msg,
Integer code,
boolean root) |
Modifier and Type | Method and Description |
---|---|
Integer |
getCode() |
String |
getLayer() |
String |
getMsg() |
ErrorType |
getType() |
boolean |
isRoot() |
void |
setCode(Integer code) |
void |
setLayer(String layer) |
void |
setMsg(String msg) |
void |
setRoot(boolean root) |
void |
setType(ErrorType type) |
protected ErrorType type
protected String layer
protected String msg
protected Integer code
protected boolean root
public Error(ErrorType type, String message)
type
- the type of errormessage
- the detailed error message that will be reported 1:1 to the end user)public Error(ErrorType type, String message, Integer code)
type
- the type of errormessage
- the detailed error message (that will be reported 1:1 to the end user)code
- a free definable error code to uniquely classify the error that can be used to filter errors in reportspublic Error(ErrorType type, String layer, String msg, Integer code, boolean root)
type
- the type of errorlayer
- a free text field that describes the layer of the application where the error occurredmsg
- the detailed error message (that will be reported 1:1 to the end user)code
- a free definable error code to uniquely classify the error that can be used to filter errors in reportsroot
- a boolean that defines if this is the root cause of an error or a rethrown error (set to true inpublic Error()
public ErrorType getType()
public void setType(ErrorType type)
public String getMsg()
public void setMsg(String msg)
public Integer getCode()
public void setCode(Integer code)
public boolean isRoot()
public void setRoot(boolean root)
public String getLayer()
public void setLayer(String layer)
Copyright © 2020. All rights reserved.