{"modulePath":"github.com/vcaesar/zedsearch","version":"v1.4.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Constants\n\n```go\nconst (\n\tErrorTypeParsingException         = \"parsing_exception\"\n\tErrorTypeXContentParseException   = \"x_content_parse_exception\"\n\tErrorTypeIllegalArgumentException = \"illegal_argument_exception\"\n\tErrorTypeRuntimeException         = \"runtime_exception\"\n\tErrorTypeNotImplemented           = \"not_implemented\"\n\tErrorTypeInvalidArgument          = \"invalid_argument\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\tErrCancelSignal = errors.New(\"cancelled\") // just for cancel notice\n\tErrNotFound     = errors.New(\"not found\")\n\tErrKeyNotFound  = errors.New(\"key not found\")\n\tErrKeyEmpty     = errors.New(\"key is be empty\")\n)\n```\n\n```go\nvar ErrorIDNotFound = errors.New(\"id not found\")\n```\n\n## Functions\n\n```go\nfunc As(err error, target interface{}) bool\n```\n\n```go\nfunc HandleError(c zhttp.Context, err error)\n```\n\n```go\nfunc Is(err, target error) bool\n```\n\n## Types\n\n```go\ntype Error struct {\n\tType     string `json:\"type\"`\n\tReason   string `json:\"reason\"`\n\tCausedBy error  `json:\"caused_by,omitempty\"`\n}\n```\n\n```go\nfunc New(errType string, errReason string) *Error\n```\n\n```go\nfunc (e *Error) Cause(err error) *Error\n```\n\n```go\nfunc (e *Error) Error() string\n```\n\n```go\nfunc (e *Error) MarshalJSON() ([]byte, error)\n```\n\n","path":"github.com/vcaesar/zedsearch/pkg/errors","name":"errors","synopsis":"","isRedistributable":true}
