Class 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
    • Constructor Detail

      • Error

        public 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)
      • Error

        public 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
      • Error

        public 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
      • Error

        public Error()
    • Method Detail

      • 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)