Package org.moera.lib.node.exception
Class MoeraNodeApiValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.moera.lib.node.exception.MoeraNodeException
org.moera.lib.node.exception.MoeraNodeApiException
org.moera.lib.node.exception.MoeraNodeApiValidationException
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields inherited from class org.moera.lib.node.exception.MoeraNodeApiException
errorCode, status
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newMoeraNodeApiValidationException
with the specified response body.MoeraNodeApiValidationException
(String errorCode, String errorMessage) Constructs a newMoeraNodeApiValidationException
with the specified error code and error message.Constructs a newMoeraNodeApiValidationException
based on the providedResult
. -
Method Summary
Methods inherited from class org.moera.lib.node.exception.MoeraNodeApiException
getErrorCode, getStatus, parseResult
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MoeraNodeApiValidationException
Constructs a newMoeraNodeApiValidationException
with the specified error code and error message.- Parameters:
errorCode
- the specific error code indicating the validation error, may benull
errorMessage
- the detailed error message describing the validation error, may benull
-
MoeraNodeApiValidationException
Constructs a newMoeraNodeApiValidationException
based on the providedResult
.- Parameters:
result
- theResult
object, containing an error code and message
-
MoeraNodeApiValidationException
Constructs a newMoeraNodeApiValidationException
with the specified response body.- Parameters:
body
- the response body containing a serializedResult
object, may benull
-