src/Uploading/AbstractUploadStrategy.php
protected function decideOnFailure($error)
    {
        if (! isset($this->errors[$error])) {
            throw new UnexpectedValueException(sprintf(
                'Unexpected error "%s" received. All error must be specified '
                . 'in errors array of this instance.',
                $error
            ));
        }
        $this->state = static::STATE_FAILURE | static::STATE_BREAK;

        $this->operationError            = $error;
        $this->operationErrorDescription = $this->errors[$error];
    }
protected function decideOnFailure($error)
    {
        if (! isset($this->errors[$error])) {
            throw new UnexpectedValueException(sprintf(
                'Unexpected error "%s" received. All error must be specified '
                . 'in errors array of this instance.',
                $error
            ));
        }
        $this->state = static::STATE_FAILURE | static::STATE_BREAK;

        $this->operationError            = $error;
        $this->operationErrorDescription = $this->errors[$error];
    }
protected function decideOnFailure ( $ error ) { if ( ! isset ( $ this -> errors [ $ error ] ) ) { throw new UnexpectedValueException ( sprintf ( 'Unexpected error "%s" received. All error must be specified ' . 'in errors array of this instance.' , $ error ) ) ; } $ this -> state = static :: STATE_FAILURE | static :: STATE_BREAK ; $ this -> operationError = $ error ; $ this -> operationErrorDescription = $ this -> errors [ $ error ] ; }
Decides on failure.

@param string $error The error

@throws \UnexpectedValueException If the received error is not specified
in $this->errors
Decides on failure .