Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
A Config for Exception creation
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error wrap default error with exception format
type Type ¶
type Type uint
Type of exception
const ( // Unexpected throwed when there is unexpected error that not specified yet here in exception type Unexpected Type = iota // NotFound throwed when there is unexpected data missing NotFound // Duplicated throwed when there is unexpected duplicated data Duplicated // BadInput throwed when there is unexpected input received from the caller BadInput Unauthorized // Forbidden throwd when there is unexpected access from the caller Forbidden )
Click to show internal directories.
Click to hide internal directories.