Package org.moera.lib.node.exception
Class MoeraNodeApiOperationException
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.MoeraNodeApiOperationException
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields inherited from class org.moera.lib.node.exception.MoeraNodeApiException
errorCode, status
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newMoeraNodeApiOperationException
with the specified response body.MoeraNodeApiOperationException
(String errorCode, String errorMessage) Constructs a newMoeraNodeApiOperationException
with the specified error code and error message.MoeraNodeApiOperationException
(Result result) Constructs a newMoeraNodeApiOperationException
using 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
-
MoeraNodeApiOperationException
Constructs a newMoeraNodeApiOperationException
with the specified error code and error message.- Parameters:
errorCode
- the specific error code returned by the API, may benull
errorMessage
- the detailed error message returned by the API, may benull
-
MoeraNodeApiOperationException
Constructs a newMoeraNodeApiOperationException
using the providedResult
.- Parameters:
result
- theResult
object containing the error code and message, may benull
-
MoeraNodeApiOperationException
Constructs a newMoeraNodeApiOperationException
with the specified response body.- Parameters:
body
- the response body containing a serializedResult
object, may benull
-