Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Provide()
Functions ¶
func IsErrorType ¶
Types ¶
type AppError ¶
type AppError struct {
// contains filtered or unexported fields
}
func WrapWithContext ¶
func (*AppError) AddContext ¶
type ErrorType ¶
type ErrorType string
const ( ErrorTypeNotFound ErrorType = "NOT_FOUND" ErrorTypeValidation ErrorType = "VALIDATION" ErrorTypeForbidden ErrorType = "FORBIDDEN" ErrorTypeInternal ErrorType = "INTERNAL" ErrorTypeDatabase ErrorType = "DATABASE" ErrorTypeExternalAPI ErrorType = "EXTERNAL_API" ErrorTypeUnprocessable ErrorType = "UNPROCESSABLE" )
Click to show internal directories.
Click to hide internal directories.