setErrorCode(int $error)
Sets the PHP error code associated with the field.
Parameters int $error The error code (one of UPLOADERRINISIZE, UPLOADERRFORMSIZE, UPLOADERRPARTIAL, UPLOADERRNOFILE, UPLOADERRNOTMPDIR, UPLOADERRCANTWRITE, or UPLOADERREXTENSION) Exceptions InvalidArgumentException When error code doesn't exist