DecodeFailure is a packet layer created if decoding of the packet data failed for some reason. It implements ErrorLayer. LayerContents will be the entire set of bytes that failed to parse, and Error will return the reason parsing failed.
| 120 | // set of bytes that failed to parse, and Error will return the reason parsing |
| 121 | // failed. |
| 122 | type DecodeFailure struct { |
| 123 | data []byte |
| 124 | err error |
| 125 | stack []byte |
| 126 | } |
| 127 | |
| 128 | // Error returns the error encountered during decoding. |
| 129 | func (d *DecodeFailure) Error() error { return d.err } |
nothing calls this directly
no outgoing calls
no test coverage detected