ApiCoreFunctions
Function: protocolError()
function protocolError(
code,
message,
hint?
): ProtocolError;Defined in: packages/core/src/utils/errors.ts:32
Creates a tagged protocol error.
Parameters
| Parameter | Type |
|---|---|
code | ProtocolErrorCode |
message | string |
hint? | string |