public function UploadException::__construct in DropzoneJS 8
Same name and namespace in other branches
- 8.2 src/UploadException.php \Drupal\dropzonejs\UploadException::__construct()
Constructs UploadException.
Parameters
int $code: Error code.
string|null $message: The error message. Defaults to null.
File
- src/
UploadException.php, line 64
Class
- UploadException
- Class UploadException.
Namespace
Drupal\dropzonejsCode
public function __construct($code, $message = NULL) {
$this->code = $code;
$this->message = isset($message) ? $message : $this->errorMessages[$this->code];
}