package
Version:
v0.9.0
Opens a new window with list of versions in this module.
Published: Feb 8, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 47
Opens a new window with list of known importers.
Documentation
¶
func Catch(recovered interface{}) error
Catch Exception catch and recovered
CatchDebug Catch the exception and print debug info
CatchPrint Catch the exception and print it
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.