Class Socialveo\Core\exceptions\UploadException

InheritanceSocialveo\Core\exceptions\UploadException » Exception
Uses TraitsSocialveo\Core\Translatable

Class UploadException

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$messages array Socialveo\Core\exceptions\UploadException

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() UploadException constructor. Socialveo\Core\exceptions\UploadException
_t() Gets translations Socialveo\Core\Translatable
t() Gets translations Socialveo\Core\Translatable

Property Details

$messages protected static property
protected static array $messages = [UPLOAD_ERR_OK => 'No upload errors occurred. Logic error'UPLOAD_ERR_INI_SIZE => 'The uploaded file exceeds the upload_max_filesize directive in php.ini'UPLOAD_ERR_FORM_SIZE => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form'UPLOAD_ERR_PARTIAL => 'The uploaded file was only partially uploaded'UPLOAD_ERR_NO_FILE => 'No file was uploaded'UPLOAD_ERR_NO_TMP_DIR => 'Missing a temporary folder'UPLOAD_ERR_CANT_WRITE => 'Failed to write file to disk'UPLOAD_ERR_EXTENSION => 'File upload stopped by extension']

Method Details

__construct() public method

UploadException constructor.

public void __construct ( $code )
$code integer