Class MoeraNodeApiNotFoundException

All Implemented Interfaces:
Serializable

public class MoeraNodeApiNotFoundException extends MoeraNodeApiException
Represents an exception thrown when a requested resource is not found in the Moera Node API. This exception specifically corresponds to HTTP 404 Not Found errors and provides additional context about the error through error codes and error messages.
See Also:
  • Constructor Details

    • MoeraNodeApiNotFoundException

      public MoeraNodeApiNotFoundException(String errorCode, String errorMessage)
      Constructs a new MoeraNodeApiNotFoundException with the specified error code and error message.
      Parameters:
      errorCode - the specific error code returned by the API, may be null
      errorMessage - the detailed error message returned by the API, may be null
    • MoeraNodeApiNotFoundException

      public MoeraNodeApiNotFoundException(Result result)
      Constructs a new MoeraNodeApiNotFoundException with the provided Result object.
      Parameters:
      result - the Result object containing an error code and message, may be null
    • MoeraNodeApiNotFoundException

      public MoeraNodeApiNotFoundException(String body)
      Constructs a new MoeraNodeApiNotFoundException with the provided response body.
      Parameters:
      body - the response body containing a serialized Result object, may be null
  • Method Details

    • parseResult

      protected static Result parseResult(String body)