error.go 306 B

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