Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Block ¶
type Block struct { Try func() Catch func(error) Finally func() }
Block - defines the try, catch and finally code blocks
func (Block) Do ¶
func (block Block) Do()
Do - Executes the Exception block. 1. Defers the finally method, so that it can be called last 2. Defers the execution of catch, to recover from panic raised by Throw and callback Catch method 3. Executes the try method, that may raise error by calling Throw method
Click to show internal directories.
Click to hide internal directories.