package
2.9.1+incompatible
Repository: https://github.com/danes3/ttn.git
Documentation: pkg.go.dev

# Functions

BuildGRPCError returns the error with a GRPC code.
FromGRPCError creates a regular error with the same type as the gRPC error.
GetErrType returns the type of err.
IsAlreadyExists returns whether error type is AlreadyExists.
IsInternal returns whether error type is Internal.
IsInvalidArgument returns whether error type is InvalidArgument.
IsNotFound returns whether error type is NotFound.
IsPermissionDenied returns whether error type is PermissionDenied.
New returns an error with the supplied message.
NewErrAlreadyExists returns a new ErrAlreadyExists for the given entitiy.
NewErrInternal returns a new ErrInternal with the given message.
NewErrInvalidArgument returns a new ErrInvalidArgument for the given entitiy.
NewErrNotFound returns a new ErrNotFound for the given entitiy.
NewErrPermissionDenied returns a new ErrPermissionDenied with the given reason.
Wrap returns an error annotating err with message.
Wrapf returns an error annotating err with the format specifier.

# Constants

These constants represent error types.
These constants represent error types.
These constants represent error types.
These constants represent error types.
These constants represent error types.
These constants represent error types.
These constants represent error types.

# Structs

ErrAlreadyExists indicates that an entity already exists.
ErrInternal indicates that an internal error occured.
ErrInvalidArgument indicates that an argument was invalid.
ErrNotFound indicates that an entity was not found.
ErrPermissionDenied indicates that permissions were not sufficient.

# Type aliases

No description provided by the author