@clawject/di
Version:
<p align="center"> <a href="https://clawject.com/" target="_blank"><img src="https://clawject.com/img/logo.svg" align="center" alt="Clawject Logo" width="120" height="120" /></a> </p>
96 lines (95 loc) • 2.98 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RuntimeErrors = void 0;
/**
* Namespace for runtime errors.
*
* Each error class is a subclass of `Error` and has a unique name.
*
* @docs https://clawject.com/docs/errors#runtime
*
* @public
*/
var RuntimeErrors;
(function (RuntimeErrors) {
/** @public */
class ExposedBeanNotFoundError extends Error {
constructor() {
super(...arguments);
this.name = 'ExposedBeanNotFoundError';
}
}
RuntimeErrors.ExposedBeanNotFoundError = ExposedBeanNotFoundError;
/** @public */
class CorruptedMetadataError extends Error {
constructor() {
super(...arguments);
this.name = 'CorruptedMetadataError';
}
}
RuntimeErrors.CorruptedMetadataError = CorruptedMetadataError;
/** @public */
class IllegalUsageError extends Error {
constructor() {
super(...arguments);
this.name = 'IllegalUsageError';
}
}
RuntimeErrors.IllegalUsageError = IllegalUsageError;
/** @public */
class DuplicateScopeError extends Error {
constructor() {
super(...arguments);
this.name = 'DuplicateScopeError';
}
}
RuntimeErrors.DuplicateScopeError = DuplicateScopeError;
/** @public */
class IllegalArgumentError extends Error {
constructor() {
super(...arguments);
this.name = 'IllegalArgumentError';
}
}
RuntimeErrors.IllegalArgumentError = IllegalArgumentError;
/** @public */
class IllegalStateError extends Error {
constructor() {
super(...arguments);
this.name = 'IllegalStateError';
}
}
RuntimeErrors.IllegalStateError = IllegalStateError;
/** @public */
class NoClassMetadataFoundError extends Error {
constructor() {
super(...arguments);
this.name = 'NoClassMetadataFoundError';
}
}
RuntimeErrors.NoClassMetadataFoundError = NoClassMetadataFoundError;
/** @public */
class CouldNotBeProxiedError extends Error {
constructor() {
super(...arguments);
this.name = 'CouldNotBeProxiedError';
}
}
RuntimeErrors.CouldNotBeProxiedError = CouldNotBeProxiedError;
/** @public */
class ScopeIsNotRegisteredError extends Error {
constructor() {
super(...arguments);
this.name = 'ScopeIsNotRegisteredError';
}
}
RuntimeErrors.ScopeIsNotRegisteredError = ScopeIsNotRegisteredError;
/** @public */
class UsageWithoutConfiguredDIError extends Error {
constructor() {
super(...arguments);
this.name = 'UsageWithoutConfiguredDIError';
}
}
RuntimeErrors.UsageWithoutConfiguredDIError = UsageWithoutConfiguredDIError;
})(RuntimeErrors || (exports.RuntimeErrors = RuntimeErrors = {}));