. */ namespace Doctrine\ORM\Tools; use Doctrine\ORM\ORMException; use Throwable; /** * Tools related Exceptions. * * @author Benjamin Eberlei */ class ToolsException extends ORMException { public static function schemaToolFailure(string $sql, Throwable $e) : self { return new self("Schema-Tool failed with Error '" . $e->getMessage() . "' while executing DDL: " . $sql, "0", $e); } /** * @param string $type * * @return ToolsException */ public static function couldNotMapDoctrine1Type($type) { return new self("Could not map doctrine 1 type '$type'!"); } }