| Age | Commit message (Collapse) | Author |
|
|
|
The Is method will return true if the target error is instance of *E
and the value of field Code and Name match with values in e.
|
|
This reduce the struct size from 56 to 40 bytes (-16 bytes).
|
|
|
|
The As method will set the target to instance of E only if only target
is **E.
|
|
This reverts commit 8379a3ac6385e811410ec512b414655926163c8d.
|
|
If the internal error is nil, the Unwrap method will return the instance
of e itself.
|
|
The field Name is optional, intended to be consumed by program, for
example, to provide a key as translation of Message into user's locale
defined language.
The err field is the underlying error.
|
|
|