mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-06-09 13:41:21 +00:00
13 lines
287 B
TypeScript
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'
|
|
}
|
|
}
|