UNPKG

@dolittle/sdk.protobuf

Version:

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

28 lines 1.51 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.FailureReason = void 0; const concepts_1 = require("@dolittle/concepts"); /** * Represents the reason for a {Failure}. */ class FailureReason extends concepts_1.ConceptAs { /** * Initialises a new instance of the {@link FailureReason} class. * @param {string} reason - The failure reason. */ constructor(reason) { super(reason, '@dolittle/sdk.protobuf.FailureReason'); } /** * Creates a {@link FailureReason} from a string. * @param {string} reason - The failure reason. * @returns {FailureReason} The failure reason concept. */ static from(reason) { return new FailureReason(reason); } } exports.FailureReason = FailureReason; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRmFpbHVyZVJlYXNvbi5qcyIsInNvdXJjZVJvb3QiOiIuLi8iLCJzb3VyY2VzIjpbIkZhaWx1cmVSZWFzb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLCtDQUErQztBQUMvQyxxR0FBcUc7OztBQUVyRyxpREFBK0M7QUFFL0M7O0dBRUc7QUFDSCxNQUFhLGFBQWMsU0FBUSxvQkFBeUQ7SUFDeEY7OztPQUdHO0lBQ0gsWUFBWSxNQUFjO1FBQ3RCLEtBQUssQ0FBQyxNQUFNLEVBQUUsc0NBQXNDLENBQUMsQ0FBQztJQUMxRCxDQUFDO0lBRUQ7Ozs7T0FJRztJQUNILE1BQU0sQ0FBQyxJQUFJLENBQUMsTUFBYztRQUN0QixPQUFPLElBQUksYUFBYSxDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBQ3JDLENBQUM7Q0FDSjtBQWpCRCxzQ0FpQkMifQ==