Package step.core.reports
Class Error
- java.lang.Object
-
- step.core.reports.Error
-
public class Error extends Object
This class is used to represent all errors that might occur in STEP either in a control or a function (aka keyword). It can represent a technical error (i.e. an unhandled or unexpected error) or a clearly identified error in the SUT
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
Error
public Error(ErrorType type, String message)
- Parameters:
type
- the type of errormessage
- the detailed error message that will be reported 1:1 to the end user)
-
Error
public Error(ErrorType type, String message, Integer code)
- Parameters:
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 reports
-
Error
public Error(ErrorType type, String layer, String msg, Integer code, boolean root)
- Parameters:
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 in
-
Error
public Error()
-
-
Method Detail
-
getType
public ErrorType getType()
-
setType
public void setType(ErrorType type)
-
getMsg
public String getMsg()
-
setMsg
public void setMsg(String msg)
-
getCode
public Integer getCode()
-
setCode
public void setCode(Integer code)
-
isRoot
public boolean isRoot()
-
setRoot
public void setRoot(boolean root)
-
getLayer
public String getLayer()
-
setLayer
public void setLayer(String layer)
-
-