# All files / src/lib/quality-validator/types index.js

100% Statements 50/50
100% Branches 6/6
100% Functions 5/5
100% Lines 50/50

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    511x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    10x
    10x
    10x
    10x
    1x
    1x
    1x
    6x
    6x
    6x
    6x
    1x
    1x
    1x
    2x
    2x
    2x
    2x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    3x
    3x
    3x
    3x
    3x
    1x
     /**
     * Type definitions for the Quality Validation CLI Tool
     * Comprehensive interfaces for all analysis, scoring, and reporting
     */
    // ============================================================================
    // ERROR TYPES
    // ============================================================================
    export class QualityValidationError extends Error {
        constructor(message, code) {
            super(message);
            this.code = code;
            Object.setPrototypeOf(this, QualityValidationError.prototype);
        }
    }
    export class ConfigurationError extends QualityValidationError {
        constructor(message, details) {
            super(message, 'CONFIG_ERROR');
            this.details = details;
            Object.setPrototypeOf(this, ConfigurationError.prototype);
        }
    }
    export class AnalysisErrorClass extends QualityValidationError {
        constructor(message, details) {
            super(message, 'ANALYSIS_ERROR');
            this.details = details;
            Object.setPrototypeOf(this, AnalysisErrorClass.prototype);
        }
    }
    export class IntegrationError extends QualityValidationError {
        constructor(message, details) {
            super(message, 'INTEGRATION_ERROR');
            this.details = details;
            Object.setPrototypeOf(this, IntegrationError.prototype);
        }
    }
    export class ReportingError extends QualityValidationError {
        constructor(message, details) {
            super(message, 'REPORTING_ERROR');
            this.details = details;
            Object.setPrototypeOf(this, ReportingError.prototype);
        }
    }
    export var ExitCode;
    (function (ExitCode) {
        ExitCode[ExitCode["SUCCESS"] = 0] = "SUCCESS";
        ExitCode[ExitCode["QUALITY_FAILURE"] = 1] = "QUALITY_FAILURE";
        ExitCode[ExitCode["CONFIGURATION_ERROR"] = 2] = "CONFIGURATION_ERROR";
        ExitCode[ExitCode["EXECUTION_ERROR"] = 3] = "EXECUTION_ERROR";
        ExitCode[ExitCode["KEYBOARD_INTERRUPT"] = 130] = "KEYBOARD_INTERRUPT";
    })(ExitCode || (ExitCode = {}));