Anoma.Protobuf.ErrorHandler (Anoma v0.32.0)
I define functions that deal with errors during the handling of GRPC requests.
I have functionality to validate an incoming request, and to raise errors that return useful error messages to the sender of the request.
Summary
Functions
Given a GRPC request, I check if this request is valid.
Functions
Link to this function
raise_grpc_error!(arg1)
Link to this function
validate_request!(req)
@spec validate_request!(any()) :: :noop
Given a GRPC request, I check if this request is valid.
If it is not, I raise a GRPC error. If it is, I do nothing.