UNPKG

@zowe/imperative

Version:
33 lines 1.21 kB
"use strict"; /* * This program and the accompanying materials are made available under the terms of the * Eclipse Public License v2.0 which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-v20.html * * SPDX-License-Identifier: EPL-2.0 * * Copyright Contributors to the Zowe Project. * */ Object.defineProperty(exports, "__esModule", { value: true }); exports.BadCredentialManagerError = void 0; const error_1 = require("../../../error"); /** * This class represents the error thrown by methods of the {@link InvalidCredentialManager} * when initialized by {@link CredentialManagerFactory.initialize} */ class BadCredentialManagerError extends error_1.ImperativeError { /** * Construct the error referencing a specific cause error. * @param causeError The error that caused the load failure. */ constructor(causeError) { super({ msg: "An invalid credential manager was passed in to the factory function!", additionalDetails: causeError.message, causeErrors: causeError }); } } exports.BadCredentialManagerError = BadCredentialManagerError; //# sourceMappingURL=BadCredentialManagerError.js.map