. */ namespace Doctrine\ORM\Tools; use Doctrine\ORM\ORMException; /** * Tools related Exceptions. * * @author Benjamin Eberlei */ class ToolsException extends ORMException { /** * @param string $sql * @param \Exception $e * * @return ToolsException */ public static function schemaToolFailure($sql, \Exception $e) { 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'!"); } }