"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IocdWdioServiceError = void 0;
const webdriverio_1 = require("webdriverio");
const Logger_1 = require("../../layers/system/Logger");
class IocdWdioServiceError extends webdriverio_1.SevereServiceError {
    // TODO: Probably use the Severe Errors when critical errors occur and when IocdWdioServiceError is catched
    // TODO: Rethink Error handling
    constructor(message) {
        super(message);
        this.logger = (0, Logger_1.Logger)('IocdWdioServiceError');
        this.logger.error(`[IOCD WDIO Service] ${message}`);
        this.name = 'IocdWdioServiceError';
        Error.captureStackTrace?.(this, this.constructor);
    }
}
exports.IocdWdioServiceError = IocdWdioServiceError;
