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];
    }