/**
 * Error types for Xcode operations
 */
export var XcodeErrorType;
(function (XcodeErrorType) {
    XcodeErrorType["ProjectNotFound"] = "PROJECT_NOT_FOUND";
    XcodeErrorType["InvalidProjectType"] = "INVALID_PROJECT_TYPE";
    XcodeErrorType["UnknownError"] = "UNKNOWN_ERROR";
})(XcodeErrorType || (XcodeErrorType = {}));
/**
 * Custom error class for Xcode operations
 */
export class XcodeError extends Error {
    type;
    path;
    constructor(type, path, message) {
        super(message || XcodeError.getDefaultMessage(type, path));
        this.type = type;
        this.path = path;
        this.name = 'XcodeError';
    }
    static getDefaultMessage(type, path) {
        switch (type) {
            case XcodeErrorType.ProjectNotFound:
                return `No Xcode project or Swift package found at: ${path}`;
            case XcodeErrorType.InvalidProjectType:
                return `Invalid project type at: ${path}`;
            case XcodeErrorType.UnknownError:
                return `Unknown error opening project at: ${path}`;
        }
    }
}
//# sourceMappingURL=XcodeErrors.js.map