Package io.nitric.api
Class UnavailableException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.nitric.api.NitricException
-
- io.nitric.api.UnavailableException
-
- All Implemented Interfaces:
Serializable
public class UnavailableException extends NitricException
Provides a Nitric API service Unavailable exception class. If this exception is thrown application code may try this operation again later if it is a transient error.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.nitric.api.NitricException
NitricException.Code
-
-
Constructor Summary
Constructors Constructor Description UnavailableException(NitricException.Code code, String message, io.grpc.StatusRuntimeException cause, io.nitric.proto.error.v1.ErrorDetails ed)
Create a new Nitric service UnavailableException with the given information.
-
Method Summary
-
Methods inherited from class io.nitric.api.NitricException
build, getArgs, getCode, getMessage, getPlugin, getRootCause, getService, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
UnavailableException
public UnavailableException(NitricException.Code code, String message, io.grpc.StatusRuntimeException cause, io.nitric.proto.error.v1.ErrorDetails ed)
Create a new Nitric service UnavailableException with the given information.- Parameters:
code
- the GRPC status codemessage
- the error messagecause
- the error root causeed
- the structured GRPC error details
-
-