{"modulePath":"github.com/Bio-OS/bioos","version":"v1.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Constants\n\n```go\nconst (\n\tInvalidCode int = iota + 1000001\n\tUnauthorizedCode\n\tForbiddenCode\n\tNotFoundCode\n\tAlreadyExistCode\n\tInternalCode\n\tTemporaryDisabledCode\n\tTimeoutCode\n)\n```\nnormal code of application.\n\n```go\nconst (\n\tRouteNotFoundCode int = iota + 1100001\n\tBindErrorCode\n\tFormFileErrorCode\n)\n```\nhertz code.\n\n## Types\n\n```go\ntype AppError struct {\n\tCode    int    `json:\"code\"`\n\tMessage string `json:\"message\"`\n\tInner   error  `json:\"-\"`\n}\n```\n\n```go\nfunc NewAlreadyExistError(resourceType, content string) *AppError\n```\n\n```go\nfunc NewForbiddenError() *AppError\n```\n\n```go\nfunc NewHertzBindError(err error) *AppError\n```\n\n```go\nfunc NewHertzFormFileError(err error) *AppError\n```\n\n```go\nfunc NewInternalError(err error) *AppError\n```\n\n```go\nfunc NewInvalidError(params ...string) *AppError\n```\n\n```go\nfunc NewNotFoundError(resourceType, content string) *AppError\n```\n\n```go\nfunc NewUnauthorizedError(message string) *AppError\n```\n\n```go\nfunc (e *AppError) Error() string\n```\n\n```go\nfunc (e *AppError) GetCode() int\n```\n\n```go\ntype Error interface {\n\terror\n\n\tGetCode() int\n\n\tError() string\n}\n```\n\n","path":"github.com/Bio-OS/bioos/pkg/errors","name":"errors","synopsis":"","isRedistributable":true}
