add FileUploadException

This commit is contained in:
coderkun 2014-04-04 13:51:24 +02:00
commit e1a40f8c59
3 changed files with 91 additions and 3 deletions

View file

@ -4,6 +4,8 @@
<?=_('File has wrong type')?>
<?php elseif($exception->getNestedException() instanceof \hhu\z\exceptions\WrongFiletypeException) : ?>
<?=_('File exceeds size maximum')?>
<?php elseif($exception->getNestedException() instanceof \hhu\z\exceptions\FileUploadException) : ?>
<?=sprintf(_('Error during file upload: %s'), $exception->getNestedException()->getNestedMessage())?>
<?php else : ?>
<?=$exception->getNestedException()->getMessage()?>
<?php endif ?>