# -*- coding: iso8859-1 -*- # # Copyright (C) 2006 CSIRO Australia # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. # # This software consists of voluntary contributions made by many # individuals. For exact contribution history, see the revision # history and logs. # # Author: Conrad Parker class ErrorResponse(object): def __init__(self, errcode, errmsg): self.errcode = errcode self.errmsg = errmsg def __str__(self): return '''

The requested URL returned HTTP error code %d: %s.

I am unable to access any data at the requested URL. Please check the configuration of the web server hosting that content.

''' % (self.errcode, self.errmsg)