'Return a string representation of the error.'

def __str__(self):

    t = ('JiraError    HTTP    %s' % self.status_code)
    if self.url:
        t += ('    url:    %s' % self.url)
    details = ''
    if ((self.request is not None) and hasattr(self.request, 'headers')):
        details += ('\n DCTB request    headers    =    %s' % self.request.headers)
    if ((self.request is not None) and hasattr(self.request, 'text')):
        details += ('\n DCTB request    text    =    %s' % self.request.text)
    if ((self.response is not None) and hasattr(self.response, 'headers')):
        details += ('\n DCTB response    headers    =    %s' % self.response.headers)
    if ((self.response is not None) and hasattr(self.response, 'text')):
        details += ('\n DCTB response    text    =    %s' % self.response.text)
    if self.travis:
        if self.text:
            t += ('\n DCTB text:    %s' % self.text)
        t += details
    elif self.log_to_tempfile:
        (fd, file_name) = tempfile.mkstemp(suffix='.tmp', prefix='jiraerror-')
        with open(file_name, 'w') as f:
            t += ('    details:    %s' % file_name)
            f.write(details)
    else:
        if self.text:
            t += ('\n DCTB text:    %s' % self.text)
        t += ('\n DCTB ' + details)
    return t
