errors

package
v0.0.0-...-51970bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiErrors = errorx.NewNamespace("api")
View Source
var AppErrors = errorx.NewNamespace("app")
View Source
var CannotOpenFileError = FileSystemErrors.NewType("cannot_open_file")
View Source
var CannotReadFileError = FileSystemErrors.NewType("cannot_read_file")
View Source
var CannotWriteConfigFileError = ConfigErrors.NewType("cannot_write_config_file")
View Source
var CannotWriteFileError = FileSystemErrors.NewType("cannot_write_file")
View Source
var ConfigErrors = errorx.NewNamespace("config")
View Source
var ConfigFileNotFoundError = ConfigErrors.NewType("config_file_not_found")
View Source
var ConfigFileParseError = ConfigErrors.NewType("config_file_parse_error")
View Source
var ConfigValueNotFoundError = ConfigErrors.NewType("config_value_not_found")
View Source
var DoDebug bool = false
View Source
var FileSizeError = FileSystemErrors.NewType("file_size_error")
View Source
var FileSystemErrors = errorx.NewNamespace("file_system")
View Source
var MalformedRequestError = ApiErrors.NewType("malformed_request")
View Source
var MimeTypeError = FileSystemErrors.NewType("mime_type_error")
View Source
var RouteNotFoundError = ApiErrors.NewType("route_not_found")
View Source
var SurrealDeserializaError = SurrealErrors.NewType("deserialization_error")
View Source
var SurrealErrors = errorx.NewNamespace("surreal")
View Source
var SurrealExecError = SurrealErrors.NewType("exec_error")
View Source
var SurrealNotReachableError = SurrealErrors.NewType("not_reachable")
View Source
var SurrealQueryError = SurrealErrors.NewType("query_error")
View Source
var TokenError = ApiErrors.NewType("token_error")
View Source
var UnauthorizedError = ApiErrors.NewType("unauthorized")
View Source
var UserAlreadyExistsError = AppErrors.NewType("user_already_exists")
View Source
var UserNoProfileError = AppErrors.NewType("user_no_profile")
View Source
var UserNotFoundError = AppErrors.NewType("user_not_found")

Functions

func CheckApiError

func CheckApiError[TData any](data TData, status int, err error) (TData, int, error)

func CheckError

func CheckError(err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL