UNPKG

@issue-linker/core

Version:
45 lines 1.07 kB
// Domain layer - Error definitions /** * Error thrown when validation fails */ export class ValidationError extends Error { field; constructor(message, field) { super(message); this.field = field; this.name = "ValidationError"; } } /** * Error thrown when a GitHub issue is not found (404) * This is a normal case, not a real error */ export class IssueNotFoundError extends Error { issueNumber; constructor(issueNumber) { super(`Issue #${issueNumber} not found`); this.issueNumber = issueNumber; this.name = "IssueNotFoundError"; } } /** * Error thrown when Git operations fail */ export class GitError extends Error { constructor(message) { super(message); this.name = "GitError"; } } /** * Error thrown when GitHub API operations fail */ export class GitHubError extends Error { status; constructor(message, status) { super(message); this.status = status; this.name = "GitHubError"; } } //# sourceMappingURL=errors.js.map