ToLinux converts the Error to a Linux ABI error that can be returned to the application.
()
| 119 | // ToLinux converts the Error to a Linux ABI error that can be returned to the |
| 120 | // application. |
| 121 | func (e *Error) ToLinux() errno.Errno { |
| 122 | if e.noTranslation { |
| 123 | panic(fmt.Sprintf("No Linux ABI translation available for %q", e.message)) |
| 124 | } |
| 125 | return e.errno |
| 126 | } |
| 127 | |
| 128 | // AnnotatedError represents an error with an additional message. |
| 129 | type AnnotatedError struct { |
no outgoing calls
no test coverage detected