package
Version:
v0.29.0
Opens a new window with list of versions in this module.
Published: Mar 16, 2021
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 66
Opens a new window with list of known importers.
Documentation
¶
Package tgerr implements helpers for error handling.
Is returns true if err type is t.
IsCode returns true of error code is as provided.
Error represents RPC error returned as result to request.
As extracts *Error from err if possible.
AsType returns *Error from err if rpc error type is t.
New creates new *Error from code and message, extracting argument
and type.
IsCode reports whether error Code is equal to code.
IsCodeOneOf returns true if error code is one of codes.
IsOneOf returns true if error type is in tt.
IsType reports whether error has type t.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.