getErrors() as $error) { $errors_str .= implode( array_values($error) ); } throw new ErrorException( $errors_str ); } }