Class ErrorHandler


  • public final class ErrorHandler
    extends java.lang.Object
    Provides error handling based on error codes and HTTP status codes returned by Fauna.

    The ErrorHandler class contains a static method to manage various error scenarios by analyzing the HTTP status code and specific error codes, mapping them to relevant exceptions.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void handleQueryFailure​(int statusCode, QueryFailure failure)
      Handles errors based on the HTTP status code and error code returned by Fauna.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait