< Summary - Envilder Core (TypeScript)

Information
Class: src/envilder/core/domain/errors/DomainErrors.ts
Assembly: Default
File(s): src/envilder/core/domain/errors/DomainErrors.ts
Tag: 151_24479375065
Line coverage
60%
Covered lines: 3
Uncovered lines: 2
Coverable lines: 5
Total lines: 42
Line coverage: 60%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

File(s)

src/envilder/core/domain/errors/DomainErrors.ts

#LineLine coverage
 1/**
 2 * Base class for all domain-specific errors in the application.
 3 */
 4export class DomainError extends Error {
 5  constructor(message: string) {
 356    super(message);
 357    this.name = this.constructor.name;
 358    Error.captureStackTrace(this, this.constructor);
 9  }
 10}
 11
 12/**
 13 * Error thrown when required arguments are missing or invalid.
 14 */
 15export class InvalidArgumentError extends DomainError {}
 16
 17/**
 18 * Error thrown when a required dependency is missing.
 19 */
 20export class DependencyMissingError extends DomainError {}
 21
 22/**
 23 * Error thrown when a secret operation fails.
 24 */
 25export class SecretOperationError extends DomainError {}
 26
 27/**
 28 * Error thrown when an environment file operation fails.
 29 */
 30export class EnvironmentFileError extends DomainError {}
 31
 32/**
 33 * Error thrown when a parameter cannot be found.
 34 */
 35export class ParameterNotFoundError extends DomainError {
 36  constructor(paramName: string) {
 037    super(`Parameter not found: ${paramName}`);
 038    this.paramName = paramName;
 39  }
 40
 41  readonly paramName: string;
 42}

Methods/Properties

(anonymous_0)
(anonymous_1)