"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OAuthCallbackInProgressError = exports.OAuthCallbackAlreadyProcessedError = exports.OAuthProviderException = void 0;
class OAuthProviderException extends Error {
    constructor(provider, reason, message, status, providerError, providerErrorCode) {
        super(message);
        this.provider = provider;
        this.reason = reason;
        this.status = status;
        this.providerError = providerError;
        this.providerErrorCode = providerErrorCode;
        this.name = 'OAuthProviderException';
    }
}
exports.OAuthProviderException = OAuthProviderException;
class OAuthCallbackAlreadyProcessedError extends Error {
    constructor() {
        super('OAuth callback already processed.');
        this.name = 'OAuthCallbackAlreadyProcessedError';
    }
}
exports.OAuthCallbackAlreadyProcessedError = OAuthCallbackAlreadyProcessedError;
class OAuthCallbackInProgressError extends Error {
    constructor() {
        super('OAuth callback is already in progress.');
        this.name = 'OAuthCallbackInProgressError';
    }
}
exports.OAuthCallbackInProgressError = OAuthCallbackInProgressError;
//# sourceMappingURL=oauth.errors.js.map