@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
23 lines • 866 B
JavaScript
// SPDX-License-Identifier: Apache-2.0
import { ConfigurationError } from './configuration-error.js';
/**
* Error indicating that a configuration source has already been registered.
*/
export class DuplicateConfigSourceError extends ConfigurationError {
/**
* Creates a new instance of DuplicateConfigurationSourceError.
*
* @param source - The duplicate ConfigSource instance.
* @param cause - The underlying cause of the error, if any.
* @param meta - Additional metadata associated with the error.
*/
constructor(source, cause, meta) {
super(`duplicate config source: ${source.name} (${source.ordinal})`, cause, {
name: source.name,
ordinal: source.ordinal,
prefix: source.prefix,
...meta,
});
}
}
//# sourceMappingURL=duplicate-config-source-error.js.map