Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitErrorHandler ¶ added in v0.0.2
func InitErrorHandler(handler ErrorHandler)
Types ¶
type Error ¶
type Error struct { File string `json:"file"` Function string `json:"function"` Detail any `json:"detail"` Line int `json:"line"` Code string `json:"code"` Err error `json:"-"` }
func GetErrorCode ¶ added in v0.0.2
func (*Error) PrintConsole ¶
func (e *Error) PrintConsole()
func (*Error) ToJsonByte ¶
type ErrorHandler ¶ added in v0.0.2
type ErrorHandler = func(error Error)
Click to show internal directories.
Click to hide internal directories.