mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-06-13 16:41:24 +00:00
Test and fix failed IK handshakes
This commit is contained in:
11
src/errors.ts
Normal file
11
src/errors.ts
Normal file
@ -0,0 +1,11 @@
|
||||
export class FailedIKError extends Error {
|
||||
public initialMsg;
|
||||
|
||||
constructor(initialMsg, message?: string) {
|
||||
super(message);
|
||||
|
||||
this.initialMsg = initialMsg;
|
||||
this.name = "FailedIKhandshake";
|
||||
this.stack = new Error().stack;
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user