js-libp2p-noise/src/errors.ts
2021-01-26 21:39:37 +00:00

13 lines
287 B
TypeScript

import BufferList from 'bl'
export class FailedIKError extends Error {
public initialMsg: string|BufferList|Buffer
constructor (initialMsg: string|BufferList|Buffer, message?: string) {
super(message)
this.initialMsg = initialMsg
this.name = 'FailedIKhandshake'
}
}