UNPKG

@restorecommerce/acs-client

Version:

Access Control Service Client

58 lines 1.58 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FailedPrecondition = exports.PermissionDenied = exports.Unauthenticated = void 0; /** * Unauthenticated means the caller could not be authenticated. */ class Unauthenticated extends Error { details; name; message; code; constructor(details, code) { super(); this.name = this.constructor.name; this.message = 'unauthenticated'; this.details = details; this.code = code; } } exports.Unauthenticated = Unauthenticated; /** * PermissionDenied indicates the caller does not have permission to * execute the specified operation. */ class PermissionDenied extends Error { details; name; message; code; constructor(details, code) { super(); this.name = this.constructor.name; this.message = 'permission denied'; this.details = details; this.code = code; } } exports.PermissionDenied = PermissionDenied; /** * FailedPrecondition means the system is not in a state in which * the operation can be executed. A precondition, for example a call * to a different endpoint before this call is required. */ class FailedPrecondition extends Error { details; name; message; code; constructor(details, code) { super(); this.name = this.constructor.name; this.message = 'failed precondition'; this.details = details; this.code = code; } } exports.FailedPrecondition = FailedPrecondition; //# sourceMappingURL=errors.js.map