UNPKG

@hashgraph/sdk

Version:
25 lines (21 loc) 715 B
// SPDX-License-Identifier: Apache-2.0 export default class BadEntityIdError extends Error { /** * @param {Long} shard * @param {Long} realm * @param {Long} num * @param {string} presentChecksum * @param {string} expectedChecksum */ constructor(shard, realm, num, presentChecksum, expectedChecksum) { super( `Entity ID ${shard.toString()}.${realm.toString()}.${num.toString()}-${presentChecksum} was incorrect.`, ); this.name = "BadEntityIdException"; this.shard = shard; this.realm = realm; this.num = num; this.presentChecksum = presentChecksum; this.expectedChecksum = expectedChecksum; } }