-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Incorporates changes necessary to upgrade to libp2p@2.x.x BREAKING CHANGE: requires libp2p@2.x.x
- Loading branch information
1 parent
0a8b06f
commit 47556c0
Showing
11 changed files
with
125 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
export class InvalidFrameError extends Error { | ||
static name = 'InvalidFrameError' | ||
|
||
constructor (message = 'The frame was invalid') { | ||
super(message) | ||
this.name = 'InvalidFrameError' | ||
} | ||
} | ||
|
||
export class UnrequestedPingError extends Error { | ||
static name = 'UnrequestedPingError' | ||
|
||
constructor (message = 'Unrequested ping error') { | ||
super(message) | ||
this.name = 'UnrequestedPingError' | ||
} | ||
} | ||
|
||
export class NotMatchingPingError extends Error { | ||
static name = 'NotMatchingPingError' | ||
|
||
constructor (message = 'Unrequested ping error') { | ||
super(message) | ||
this.name = 'NotMatchingPingError' | ||
} | ||
} | ||
|
||
export class InvalidStateError extends Error { | ||
static name = 'InvalidStateError' | ||
|
||
constructor (message = 'Invalid state') { | ||
super(message) | ||
this.name = 'InvalidStateError' | ||
} | ||
} | ||
|
||
export class StreamAlreadyExistsError extends Error { | ||
static name = 'StreamAlreadyExistsError' | ||
|
||
constructor (message = 'Strean already exists') { | ||
super(message) | ||
this.name = 'StreamAlreadyExistsError' | ||
} | ||
} | ||
|
||
export class DecodeInvalidVersionError extends Error { | ||
static name = 'DecodeInvalidVersionError' | ||
|
||
constructor (message = 'Decode invalid version') { | ||
super(message) | ||
this.name = 'DecodeInvalidVersionError' | ||
} | ||
} | ||
|
||
export class BothClientsError extends Error { | ||
static name = 'BothClientsError' | ||
|
||
constructor (message = 'Both clients') { | ||
super(message) | ||
this.name = 'BothClientsError' | ||
} | ||
} | ||
|
||
export class ReceiveWindowExceededError extends Error { | ||
static name = 'ReceiveWindowExceededError' | ||
|
||
constructor (message = 'Receive window exceeded') { | ||
super(message) | ||
this.name = 'ReceiveWindowExceededError' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.