src/Viserio/Component/Http/UploadedFile.php
private function validateActive(): void
    {
        if ($this->isOk() === false) {
            throw new RuntimeException(\sprintf(
                'Cannot retrieve stream due to upload error: %s',
                self::$errorMessages[$this->error]
            ));
        }

        if ($this->isMoved()) {
            throw new RuntimeException('Cannot retrieve stream after it has already been moved.');
        }
    }
private function validateActive(): void
    {
        if ($this->isOk() === false) {
            throw new RuntimeException(\sprintf(
                'Cannot retrieve stream due to upload error: %s',
                self::$errorMessages[$this->error]
            ));
        }

        if ($this->isMoved()) {
            throw new RuntimeException('Cannot retrieve stream after it has already been moved.');
        }
    }
Validate retrieve stream.

@throws \Viserio\Component\Contract\Http\Exception\RuntimeException if is moved or not ok

@return void