/**
 * An object describing an error during the authorization process.
 */
export class AuthorizationError extends Error {
    code;
    state;
    interactive;
    /**
     * @param message The human readable message.
     * @param code The error code
     * @param state Used state parameter
     * @param interactive Whether the request was interactive.
     */
    constructor(message, code, state, interactive) {
        super(message);
        this.code = code;
        this.state = state;
        this.interactive = interactive;
    }
}
export class CodeError extends Error {
    code;
    /**
     * @param message The human readable message.
     * @param code The error code
     */
    constructor(message, code) {
        super(message);
        this.code = code;
    }
}
//# sourceMappingURL=AuthorizationError.js.map