git-spark
Version:
Git repository analytics and reporting tool for analyzing commit patterns and contributor activity
39 lines • 1.18 kB
JavaScript
;
/**
* Core types and interfaces for git-spark
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.PerformanceError = exports.GitError = exports.ValidationError = exports.GitSparkError = void 0;
class GitSparkError extends Error {
constructor(message, code, cause) {
super(message);
this.code = code;
this.cause = cause;
this.name = 'GitSparkError';
}
}
exports.GitSparkError = GitSparkError;
class ValidationError extends GitSparkError {
constructor(message, field) {
super(message, 'VALIDATION_ERROR');
this.field = field;
this.name = 'ValidationError';
}
}
exports.ValidationError = ValidationError;
class GitError extends GitSparkError {
constructor(message, gitCommand) {
super(message, 'GIT_ERROR');
this.gitCommand = gitCommand;
this.name = 'GitError';
}
}
exports.GitError = GitError;
class PerformanceError extends GitSparkError {
constructor(message) {
super(message, 'PERFORMANCE_ERROR');
this.name = 'PerformanceError';
}
}
exports.PerformanceError = PerformanceError;
//# sourceMappingURL=index.js.map