package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Mar 30, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 47
Opens a new window with list of known importers.
Documentation
¶
Mode the mode of the application
func Catch(recovered interface{}, err ...error) error
Catch Exception catch and recovered
CatchDebug Catch the exception and print debug info
CatchPrint Catch the exception and print it
func DebugPrint(err error, message string, args ...interface{})
DebugPrint print the message only in development mode
GetWriter returns the current output target.
SetWriter replaces the output target for debug/exception messages.
Pass nil to reset to os.Stdout.
Trim the exception message
type Exception struct {
Message string `json:"message"`
Code int `json:"code"`
Context interface{} `json:"context"`
}
Exception the Exception type
Err Create an exception instance from the error
New Create a new exception instance
Ctx Add the context for the exception.
Print print the exception
Throw Throw the exception and terminal progress.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.