Functions - grpc

prepareError
Prepare the error as a gRPC-specific Error.

prepareError

(ErrorType errorType, string message, error? cause)

returns Error

Prepare the error as a gRPC-specific Error.

Parameters

  • message string
  • The error message

  • cause error?
  • The error instance

  • Return Type

    (Error)
  • The prepared grpc:Error instance