Class MoeraNodeApiValidationException

All Implemented Interfaces:
Serializable

public class MoeraNodeApiValidationException extends MoeraNodeApiException
Represents an exception thrown when a validation error occurs while interacting with the Moera Node API. This exception specifically indicates that the request failed due to validation issues and is associated with an HTTP status code of 400 Bad Request.
See Also:
  • Constructor Details

    • MoeraNodeApiValidationException

      public MoeraNodeApiValidationException(String errorCode, String errorMessage)
      Constructs a new MoeraNodeApiValidationException with the specified error code and error message.
      Parameters:
      errorCode - the specific error code indicating the validation error, may be null
      errorMessage - the detailed error message describing the validation error, may be null
    • MoeraNodeApiValidationException

      public MoeraNodeApiValidationException(Result result)
      Constructs a new MoeraNodeApiValidationException based on the provided Result.
      Parameters:
      result - the Result object, containing an error code and message
    • MoeraNodeApiValidationException

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