package
1.0.0
Repository: https://github.com/rizalgowandy/gdk.git
Documentation: pkg.go.dev

# Functions

E builds an error value from its arguments.
Errorf is equivalent to fmt.Errorf, but allows clients to import only this package for all error handling.
GetArr returns the error as the converted array of errors.
GetArrJSON returns the json byte of the converted array of errors.
GetCode returns the code of the root error, if available.
GetMessage returns the human-readable message of the error, if available.
GetOps returns the "stack" of operations for each generated error.
Is reports whether err is an *Error of the given Code.
Match compares its two error arguments.
Str returns an error that formats as the given text.

# Constants

Action cannot be performed.
Gateway or third party service return error.
Internal error or inconsistency.
Validation failed.
Entity does not exist.
Permission denied.
Unclassified or unknown error.

# Variables

DefaultMessage is the string used as default response for GetMessage.
Separator is the string used to separate nested errors.

# Structs

Error defines a standard application error.

# Type aliases

Code defines the kind of error this is, mostly for use by systems that must act differently depending on the error.
Op describes an operation, usually as the package and method, such as "userService.FindUserByID".