Class PsaRstApiErr

java.lang.Object
de.pisa.psa.rst.obj.PsaRstApiErr

public class PsaRstApiErr extends Object
REST API: error
Since:
23.05.2023
Author:
weiland
  • Field Details

    • error

      public String error
      A human-readable error message
    • code

      public String code
      A technical identifier that uniquely identifies the error
    • details

      public Map<String,String> details
      Technical details about the error that can be used for automation
  • Constructor Details

    • PsaRstApiErr

      public PsaRstApiErr()
      Default constructor
    • PsaRstApiErr

      public PsaRstApiErr(PsaRstApiErr source)
      Copy constructor
      Parameters:
      source -
  • Method Details

    • addDetail

      public void addDetail(String key, String value)
      add a detail
      Parameters:
      key - key
      value - value
    • toJson

      public String toJson()
      get the JSON for this instance
      Returns:
      JSON
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: