<?php declare(strict_types=1);

namespace apexl\Vault\exceptions;

use Exception;

/**
 * Thrown by the `mongodb` driver when a consumer calls a method on the
 * shared `driver` interface that has no faithful MongoDB translation —
 * `whereRaw`, `executeRaw`, `executeSql`, `subQuery`, complex `having`,
 * SQL JOINs (Mongo $lookup is supported via the typed `mongo()` escape
 * hatch on Operators, NOT through the shared interface), etc.
 *
 * Caller should either: (a) restructure the query to use only the
 * SQL-and-Mongo-portable subset of the driver interface, or (b) reach
 * for the Mongo-only escape hatches via mongoEntityDatabaseOperator's
 * typed accessor.
 */
class MongoUnsupportedException extends Exception
{
}
