public class NightfallAPIException extends BaseNightfallException
| Constructor and Description |
|---|
NightfallAPIException(String message)
Create a new instance of the exception.
|
NightfallAPIException(String message,
NightfallErrorResponse error,
int httpStatusCode)
Create a new instance of the exception.
|
| Modifier and Type | Method and Description |
|---|---|
NightfallErrorResponse |
getError()
Get the error object returned by Nightfall.
|
String |
getMessage() |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic NightfallAPIException(String message)
message - an error messagepublic NightfallAPIException(String message, NightfallErrorResponse error, int httpStatusCode)
message - an error messageerror - the standardized error object returned by the Nightfall APIhttpStatusCode - the HTTP status codepublic NightfallErrorResponse getError()
public String getMessage()
getMessage in class ThrowableCopyright © 2022. All rights reserved.