mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-04-29 00:22:20 +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
|
||
|
}
|