Package de.pisa.psa.rst.obj
Class PsaRstApiErr
- java.lang.Object
-
- de.pisa.psa.rst.obj.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 errorjava.util.Map<java.lang.String,java.lang.String>
details
Technical details about the error that can be used for automationjava.lang.String
error
A human-readable error message
-
Constructor Summary
Constructors Constructor Description PsaRstApiErr()
Default constructorPsaRstApiErr(PsaRstApiErr source)
Copy constructor
-
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 detailjava.lang.String
toJson()
get the JSON for this instancejava.lang.String
toString()
-
-
-
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
- keyvalue
- value
-
toJson
public java.lang.String toJson()
get the JSON for this instance- Returns:
- JSON
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-