| 9 | } |
| 10 | |
| 11 | export class HttpSignatureError extends Error { |
| 12 | constructor(message: string, caller: any) { |
| 13 | super(message) |
| 14 | if (Error.captureStackTrace) Error.captureStackTrace(this, caller || HttpSignatureError) |
| 15 | |
| 16 | this.message = message |
| 17 | this.name = caller.name |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | export class InvalidAlgorithmError extends HttpSignatureError { |
| 22 | constructor(message: string) { |
nothing calls this directly
no outgoing calls
no test coverage detected