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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetCode()StringgetLayer()StringgetMsg()ErrorTypegetType()booleanisRoot()voidsetCode(Integer code)voidsetLayer(String layer)voidsetMsg(String msg)voidsetRoot(boolean root)voidsetType(ErrorType type)
 
- 
- 
- 
Constructor Detail- 
Errorpublic Error(ErrorType type, String message) - Parameters:
- type- the type of error
- message- the detailed error message that will be reported 1:1 to the end user)
 
 - 
Errorpublic Error(ErrorType type, String message, Integer code) - Parameters:
- type- the type of error
- message- 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
 
 - 
Errorpublic Error(ErrorType type, String layer, String msg, Integer code, boolean root) - Parameters:
- type- the type of error
- layer- a free text field that describes the layer of the application where the error occurred
- msg- 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
- root- a boolean that defines if this is the root cause of an error or a rethrown error (set to true in
 
 - 
Errorpublic Error() 
 
- 
 - 
Method Detail- 
getTypepublic ErrorType getType() 
 - 
setTypepublic void setType(ErrorType type) 
 - 
getMsgpublic String getMsg() 
 - 
setMsgpublic void setMsg(String msg) 
 - 
getCodepublic Integer getCode() 
 - 
setCodepublic void setCode(Integer code) 
 - 
isRootpublic boolean isRoot() 
 - 
setRootpublic void setRoot(boolean root) 
 - 
getLayerpublic String getLayer() 
 - 
setLayerpublic void setLayer(String layer) 
 
- 
 
-