We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 932cd95 commit 029e6cfCopy full SHA for 029e6cf
1 file changed
type.go
@@ -53,7 +53,7 @@ func (t *Type) NewWithNoMessage() *Error {
53
54
// Wrap creates an error of this type with another as original cause.
55
// As far as type checks are concerned, this error is the only one visible, with original present only in error message.
56
-// The original error will, however, pass its dynamic properties.
+// The original error will not pass its dynamic properties, and those are accessible only via direct walk over Cause() chain.
57
// Without args, leaves the original message intact, so a message may be generated or provided externally.
58
// With args, a formatting is performed, and it is therefore expected a format string to be constant.
59
func (t *Type) Wrap(err error, message string, args ...interface{}) *Error {
0 commit comments