({ count }: { count: number })
| 94 | } |
| 95 | export class RlpTrailingBytesError extends BaseError { |
| 96 | constructor({ count }: { count: number }) { |
| 97 | super( |
| 98 | `RLP payload encodes a single item, but \`${count}\` trailing ${ |
| 99 | count === 1 ? 'byte remains' : 'bytes remain' |
| 100 | }.`, |
| 101 | { name: 'RlpTrailingBytesError' }, |
| 102 | ) |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | export type SizeOverflowErrorType = SizeOverflowError & { |
nothing calls this directly
no outgoing calls
no test coverage detected