@dolittle/sdk.resources
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
20 lines • 1.42 kB
JavaScript
;
// 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.ResourcesNotFetchedForTenant = void 0;
const rudiments_1 = require("@dolittle/rudiments");
/**
* Exception that gets thrown when attempting to get resources for a {@link TenantId} that the client has not fetched resources for.
*/
class ResourcesNotFetchedForTenant extends rudiments_1.Exception {
/**
* Initialises a new instance of the {@link ResourcesNotFetchedForTenant} class.
* @param {TenantId} tenant - The tenant that resources has not been fetched for.
*/
constructor(tenant) {
super(`No resources fetched for ${tenant}. Please make sure this tenant is configured in the Runtime.`);
}
}
exports.ResourcesNotFetchedForTenant = ResourcesNotFetchedForTenant;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVzb3VyY2VzTm90RmV0Y2hlZEZvclRlbmFudC5qcyIsInNvdXJjZVJvb3QiOiIuLi8iLCJzb3VyY2VzIjpbIlJlc291cmNlc05vdEZldGNoZWRGb3JUZW5hbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLCtDQUErQztBQUMvQyxxR0FBcUc7OztBQUVyRyxtREFBZ0Q7QUFHaEQ7O0dBRUc7QUFDSCxNQUFhLDRCQUE2QixTQUFRLHFCQUFTO0lBQ3ZEOzs7T0FHRztJQUNILFlBQVksTUFBZ0I7UUFDeEIsS0FBSyxDQUFDLDRCQUE0QixNQUFNLDhEQUE4RCxDQUFDLENBQUM7SUFDNUcsQ0FBQztDQUNKO0FBUkQsb0VBUUMifQ==