public static function singleField($field, $message) { $errors = new DatabaseException(); $errors->addError($field, $message); return $errors; }