Class NightfallAPIException

All Implemented Interfaces:
Serializable

public class NightfallAPIException extends BaseNightfallException
The exception thrown when the Nightfall API returns an HTTP status code in the range [400, 599]. Embeds the standard Nightfall error object for debugging.
See Also:
  • Constructor Details

    • NightfallAPIException

      public NightfallAPIException(String message)
      Create a new instance of the exception.
      Parameters:
      message - an error message
    • NightfallAPIException

      public NightfallAPIException(String message, NightfallErrorResponse error, int httpStatusCode)
      Create a new instance of the exception.
      Parameters:
      message - an error message
      error - the standardized error object returned by the Nightfall API
      httpStatusCode - the HTTP status code
  • Method Details