Class PsaRstApiErr


  • public class PsaRstApiErr
    extends java.lang.Object
    REST API: error
    Since:
    23.05.2023
    Author:
    weiland
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String code
      A technical identifier that uniquely identifies the error
      java.util.Map<java.lang.String,​java.lang.String> details
      Technical details about the error that can be used for automation
      java.lang.String error
      A human-readable error message
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addDetail​(java.lang.String key, java.lang.String value)
      add a detail
      java.lang.String toJson()
      get the JSON for this instance
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • error

        public java.lang.String error
        A human-readable error message
      • code

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

        public java.util.Map<java.lang.String,​java.lang.String> details
        Technical details about the error that can be used for automation
    • Constructor Detail

      • PsaRstApiErr

        public PsaRstApiErr()
        Default constructor
      • PsaRstApiErr

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

      • addDetail

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

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

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