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