UNPKG

@dolittle/sdk.resources

Version:

Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.

22 lines 1.56 kB
"use strict"; // Copyright (c) Dolittle. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. Object.defineProperty(exports, "__esModule", { value: true }); exports.FailedToGetResourceForTenant = void 0; const rudiments_1 = require("@dolittle/rudiments"); /** * Exception that gets thrown when getting a resource for a tenant failed. */ class FailedToGetResourceForTenant extends rudiments_1.Exception { /** * Initializes a new instance of the {@link FailedToGetResourceForTenant} class. * @param {ResourceName} resource - The resource name that was attempted to get. * @param {TenantId} tenant - The tenant that the resource was attempted to get for. * @param {string} reason - The reason for the failure. */ constructor(resource, tenant, reason) { super(`Failed to get resource ${resource} for tenant ${tenant} because ${reason}`); } } exports.FailedToGetResourceForTenant = FailedToGetResourceForTenant; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRmFpbGVkVG9HZXRSZXNvdXJjZUZvclRlbmFudC5qcyIsInNvdXJjZVJvb3QiOiIuLi8iLCJzb3VyY2VzIjpbIkZhaWxlZFRvR2V0UmVzb3VyY2VGb3JUZW5hbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLCtDQUErQztBQUMvQyxxR0FBcUc7OztBQUVyRyxtREFBZ0Q7QUFLaEQ7O0dBRUc7QUFDSCxNQUFhLDRCQUE2QixTQUFRLHFCQUFTO0lBQ3ZEOzs7OztPQUtHO0lBQ0gsWUFBWSxRQUFzQixFQUFFLE1BQWdCLEVBQUUsTUFBYztRQUNoRSxLQUFLLENBQUMsMEJBQTBCLFFBQVEsZUFBZSxNQUFNLFlBQVksTUFBTSxFQUFFLENBQUMsQ0FBQztJQUN2RixDQUFDO0NBQ0o7QUFWRCxvRUFVQyJ9