Uses of Class
io.nitric.api.NitricException.Code
-
Packages that use NitricException.Code Package Description io.nitric.api Provides the API exception classes. -
-
Uses of NitricException.Code in io.nitric.api
Methods in io.nitric.api that return NitricException.Code Modifier and Type Method Description NitricException.Code
NitricException. getCode()
Return the GRPC error code.static NitricException.Code
NitricException.Code. valueOf(String name)
Returns the enum constant of this type with the specified name.static NitricException.Code[]
NitricException.Code. values()
Returns an array containing the constants of this enum type, in the order they are declared.Constructors in io.nitric.api with parameters of type NitricException.Code Constructor Description InvalidArgumentException(NitricException.Code code, String message, io.grpc.StatusRuntimeException cause, io.nitric.proto.error.v1.ErrorDetails ed)
Create a new service InvalidArgumentException with the given information.NitricException(NitricException.Code code, String message, io.grpc.StatusRuntimeException cause, io.nitric.proto.error.v1.ErrorDetails ed)
Create a new NitricException with the given information.NotFoundException(NitricException.Code code, String message, io.grpc.StatusRuntimeException cause, io.nitric.proto.error.v1.ErrorDetails ed)
Create a new resource NotFoundException with the given information.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.
-