({
size,
targetSize,
type,
}: {
size: number
targetSize: number
type: 'hex' | 'bytes'
})
| 23 | } |
| 24 | export class SizeExceedsPaddingSizeError extends BaseError { |
| 25 | constructor({ |
| 26 | size, |
| 27 | targetSize, |
| 28 | type, |
| 29 | }: { |
| 30 | size: number |
| 31 | targetSize: number |
| 32 | type: 'hex' | 'bytes' |
| 33 | }) { |
| 34 | super( |
| 35 | `${type.charAt(0).toUpperCase()}${type |
| 36 | .slice(1) |
| 37 | .toLowerCase()} size (${size}) exceeds padding size (${targetSize}).`, |
| 38 | { name: 'SizeExceedsPaddingSizeError' }, |
| 39 | ) |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | export type InvalidBytesLengthErrorType = InvalidBytesLengthError & { |
nothing calls this directly
no outgoing calls
no test coverage detected