github.com/sagernet/sing@v0.4.0-beta.19.0.20240518125136-f67a0988a636/common/exceptions/cause.go (about) 1 package exceptions 2 3 type causeError struct { 4 message string 5 cause error 6 } 7 8 func (e *causeError) Error() string { 9 return e.message + ": " + e.cause.Error() 10 } 11 12 func (e *causeError) Unwrap() error { 13 return e.cause 14 }