You are here

public function UploadException::__construct in DropzoneJS 8.2

Same name and namespace in other branches
  1. 8 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\dropzonejs

Code

public function __construct($code, $message = NULL) {
  $this->code = $code;
  $this->message = isset($message) ? $message : $this->errorMessages[$this->code];
}