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 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 CheckError ¶
func CheckError(err error)
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.