Class MoeraNodeApiOperationException

All Implemented Interfaces:
Serializable

public class MoeraNodeApiOperationException extends MoeraNodeApiException
Represents an exception indicating that an operation failed when interacting with the Moera Node API. This exception is thrown for failures specifically tied to API operations, which return an HTTP 409 Conflict status code.
See Also:
  • Constructor Details

    • MoeraNodeApiOperationException

      public MoeraNodeApiOperationException(String errorCode, String errorMessage)
      Constructs a new MoeraNodeApiOperationException 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
    • MoeraNodeApiOperationException

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

      public MoeraNodeApiOperationException(String body)
      Constructs a new MoeraNodeApiOperationException with the specified response body.
      Parameters:
      body - the response body containing a serialized Result object, may be null