public static function createFromErrorCollection($errors, $p1, $p2 = NULL) { $e = new self($p1, $p2); $e->setErrors($errors); return $e; }
public static function throwErrors($errors) { $e = new self(); $e->setErrors($errors); throw $e; }