Package ai.nightfall.scan.model
Class NightfallErrorResponse
java.lang.Object
ai.nightfall.scan.model.NightfallErrorResponse
The error model returned by Nightfall API requests that are unsuccessful. This object is generally returned
when the HTTP status code is outside the range 200-299.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NightfallErrorResponse
public NightfallErrorResponse() -
NightfallErrorResponse
public NightfallErrorResponse(int code, String message, String description, Map<String, String> additionalData) Builds a new NightfallErrorResponse object.- Parameters:
code- the error codemessage- the error messagedescription- further descriptionadditionalData- a map of key-value pairs that contain even further debugging information
-
-
Method Details
-
getCode
public int getCode()Get the error code.- Returns:
- the error code returned by the API
-
getMessage
Get the error message.- Returns:
- the error message returned by the API
-
getDescription
Get the error description.- Returns:
- additional details describing the circumstance surrounding the error
-
getAdditionalData
Get supplemental error data.- Returns:
- supplemental data that may be useful in debugging the error message
-
toString
-
equals
-
hashCode
public int hashCode()
-