Documentation ¶
Index ¶
- func Assert(expr bool, message string)
- func EosAssert(expr bool, exception Exception, format string, args ...interface{})
- func EosThrow(exception Exception, format string, args ...interface{})
- func FcAssert(test bool, args ...interface{})
- func FcFormatArgParams(args []interface{}) (string, []interface{})
- func FcRethrowException(er Exception, logLevel Lvl, format string, args ...interface{})
- func FcThrow(format string, args ...interface{})
- func Throw(e interface{})
- type CatchOrFinally
- func (c *CatchOrFinally) Catch(f interface{}) (r *CatchOrFinally)
- func (c *CatchOrFinally) CatchAndCall(Next func(interface{})) *CatchOrFinally
- func (c *CatchOrFinally) End() *CatchOrFinally
- func (c *CatchOrFinally) EosRethrowExceptions(exception Exception, format string, args ...interface{}) *CatchOrFinally
- func (c *CatchOrFinally) FcCaptureAndLog(args ...interface{}) *CatchOrFinally
- func (c *CatchOrFinally) FcCaptureAndRethrow(args ...interface{}) *CatchOrFinally
- func (c *CatchOrFinally) FcCaptureLogAndRethrow(args ...interface{}) *CatchOrFinally
- func (c *CatchOrFinally) FcLogAndDrop(args ...interface{}) *CatchOrFinally
- func (c *CatchOrFinally) FcLogAndRethrow() *CatchOrFinally
- func (c *CatchOrFinally) FcRethrowExceptions(logLevel Lvl, format string, args ...interface{}) *CatchOrFinally
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FcFormatArgParams ¶
func FcFormatArgParams(args []interface{}) (string, []interface{})
func FcRethrowException ¶
func FcRethrowException(er Exception, logLevel Lvl, format string, args ...interface{})
Types ¶
type CatchOrFinally ¶
type CatchOrFinally struct {
// contains filtered or unexported fields
}
func Try ¶
func Try(f func()) (r *CatchOrFinally)
Try call the function. And return interface that can call Catch or Finally.
func (*CatchOrFinally) Catch ¶
func (c *CatchOrFinally) Catch(f interface{}) (r *CatchOrFinally)
Catch call the exception handler. And return interface CatchOrFinally that can call Catch or Finally.
func (*CatchOrFinally) CatchAndCall ¶
func (c *CatchOrFinally) CatchAndCall(Next func(interface{})) *CatchOrFinally
func (*CatchOrFinally) End ¶
func (c *CatchOrFinally) End() *CatchOrFinally
Necessary to call at the end of try-catch block, to ensure panic uncaught exceptions
func (*CatchOrFinally) EosRethrowExceptions ¶
func (c *CatchOrFinally) EosRethrowExceptions(exception Exception, format string, args ...interface{}) *CatchOrFinally
noinspection GoStructInitializationWithoutFieldNames
func (*CatchOrFinally) FcCaptureAndLog ¶
func (c *CatchOrFinally) FcCaptureAndLog(args ...interface{}) *CatchOrFinally
func (*CatchOrFinally) FcCaptureAndRethrow ¶
func (c *CatchOrFinally) FcCaptureAndRethrow(args ...interface{}) *CatchOrFinally
func (*CatchOrFinally) FcCaptureLogAndRethrow ¶
func (c *CatchOrFinally) FcCaptureLogAndRethrow(args ...interface{}) *CatchOrFinally
func (*CatchOrFinally) FcLogAndDrop ¶
func (c *CatchOrFinally) FcLogAndDrop(args ...interface{}) *CatchOrFinally
func (*CatchOrFinally) FcLogAndRethrow ¶
func (c *CatchOrFinally) FcLogAndRethrow() *CatchOrFinally
func (*CatchOrFinally) FcRethrowExceptions ¶
func (c *CatchOrFinally) FcRethrowExceptions(logLevel Lvl, format string, args ...interface{}) *CatchOrFinally
Click to show internal directories.
Click to hide internal directories.