| 1 | package ndr |
| 2 | |
| 3 | import "fmt" |
| 4 | |
| 5 | // Malformed implements the error interface for malformed NDR encoding errors. |
| 6 | type Malformed struct { |
| 7 | EText string |
| 8 | } |
| 9 | |
| 10 | // Error implements the error interface on the Malformed struct. |
| 11 | func (e Malformed) Error() string { |
| 12 | return fmt.Sprintf("malformed NDR steam: %s", e.EText) |
| 13 | } |