Package org.moera.lib.naming
Class MoeraNamingApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.moera.lib.jsonrpc.JsonRpcApiException
org.moera.lib.naming.MoeraNamingApiException
- All Implemented Interfaces:
Serializable
Represents an exception specific to errors returned by the Moera Naming API calls.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMoeraNamingApiException
(int rpcCode, String message) Constructs a new instance ofMoeraNamingApiException
with the specified RPC error code and detail message.MoeraNamingApiException
(JsonRpcError jsonRpcError) Constructs a newMoeraNamingApiException
instance using the providedJsonRpcError
. -
Method Summary
Methods inherited from class org.moera.lib.jsonrpc.JsonRpcApiException
getRpcCode, getRpcError
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MoeraNamingApiException
Constructs a new instance ofMoeraNamingApiException
with the specified RPC error code and detail message.- Parameters:
rpcCode
- the JSON-RPC error code associated with this exceptionmessage
- the detail message providing additional information about the error
-
MoeraNamingApiException
Constructs a newMoeraNamingApiException
instance using the providedJsonRpcError
. The exception encapsulates the error code and message from the specified JSON-RPC error object.- Parameters:
jsonRpcError
- theJsonRpcError
instance containing the error code and message
-