5use ILIAS\FileUpload\ScalarTypeCheckAware;
22 use ScalarTypeCheckAware;
55 $this->intTypeCheck(
$code,
'code');
56 $this->stringTypeCheck($reason,
'reason');
58 if (
$code !== self::OK &&
$code !== self::REJECTED) {
59 throw new \InvalidArgumentException(
'Invalid upload status code received. The code must be OK or REJECTED.');
63 $this->message = $reason;
An exception for terminatinating execution or to throw for unit testing.
const REJECTED
Upload got rejected by a processor.
__construct($code, $reason)
ProcessingStatus constructor.