mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-07-01 21:21:54 +00:00
17 lines
273 B
JavaScript
17 lines
273 B
JavaScript
![]() |
'use strict'
|
||
|
|
||
|
class UnexpectedPeerError extends Error {
|
||
|
constructor (message = 'Unexpected Peer') {
|
||
|
super(message)
|
||
|
this.code = UnexpectedPeerError.code
|
||
|
}
|
||
|
|
||
|
static get code () {
|
||
|
return 'ERR_UNEXPECTED_PEER'
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = {
|
||
|
UnexpectedPeerError
|
||
|
}
|