Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Throwabler ¶
type Throwabler = java_exception.Throwabler
func FromError ¶
func FromError(err error) (Throwabler, bool)
FromError extracts Throwabler from passed err.
If err is nil, it returns nil and false
If err implements Unwrap(), it would unwrap err until getting the real cause. Then it would check cause whether implementing Throwabler. If yes, it returns Throwabler and true.
If not, it checks err whether implementing Throwabler directly. If yes, it returns Throwabler and true.
Click to show internal directories.
Click to hide internal directories.