Package io.nitric.api

Class 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
    • 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 code
        message - the error message
        cause - the error root cause
        ed - the structured GRPC error details