js-libp2p-noise/src/errors.ts

11 lines
210 B
TypeScript
Raw Normal View History

2020-01-15 17:27:32 +01:00
export class FailedIKError extends Error {
public initialMsg;
constructor(initialMsg, message?: string) {
super(message);
this.initialMsg = initialMsg;
this.name = "FailedIKhandshake";
}
};