public function failError()
    {
        if (
            ($packet = $this->getPacket()) and
            $packet['status'] !== Job::STATUS_FAILED and
            ($e = json_decode($packet['exception'], true))
        ) {
            return $e['error'];
        }

        return 'Unknown exception';
    }
public function failError()
    {
        if (
            ($packet = $this->getPacket()) and
            $packet['status'] !== Job::STATUS_FAILED and
            ($e = json_decode($packet['exception'], true))
        ) {
            return $e['error'];
        }

        return 'Unknown exception';
    }
public function failError ( ) { if ( ( $ packet = $ this -> getPacket ( ) ) and $ packet [ 'status' ] !== Job :: STATUS_FAILED and ( $ e = json_decode ( $ packet [ 'exception' ] , true ) ) ) { return $ e [ 'error' ] ; } return 'Unknown exception' ; }
Returns the fail error for the job

@return mixed
Returns the fail error for the job