European Parliament MCP Server API - v1.0.1
    Preparing search index...

    Class GDPRComplianceError

    GDPR compliance error

    Thrown when an operation would violate GDPR requirements, such as:

    • Accessing personal data without proper authorization
    • Caching personal data beyond retention limits
    • Missing required audit logging
    • Data minimization violations

    Always returns HTTP 403 status to indicate forbidden operation.

    if (cacheAge > maxPersonalDataCacheAge) {
    throw new GDPRComplianceError(
    'Personal data cache expired',
    { cacheAge, maxAge: maxPersonalDataCacheAge }
    );
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    Properties

    code: string

    Machine-readable error code (e.g., 'VALIDATION_ERROR')

    statusCode: number = 500

    HTTP status code (default: 500)

    details?: unknown

    Optional additional error details for debugging