Module ruya :: Class Document :: Class DocumentError
[hide private]
[frames] | no frames]

Class DocumentError

source code

object --+
         |
        Document.DocumentError

Ruya's document error object represents crawl error occurred during crawl of a Document.

Instance Methods [hide private]
None
__init__(self, code=100000, type=None, value=None)
Constructor.
source code
str
__str__(self)
String representation of this object.
source code
str
__repr__(self)
Same as string representation.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Variables [hide private]
  DOCERR_INTERNAL = 100000
Unknown internal error
  DOCERR_CONVERSION = 100001
Failed to convert document contents to UTF-8
  DOCERR_MAXREDIRECT = 100002
Maximum redirects were exceeded but Document is still redirected further.
  DOCERR_NO_REDIRECTALLOW = 100003
Allow redirect is set to False.
  DOCERR_URLERROR = 100004
URL is invalid.
  DOCERR_UNHANDLED_HTTPSTATUS = 100005
HTTP status is not handled within Ruya - Ruya handles 200, 301, 302, 307, 404, 416 only.
  DOCERR_CRAWL_NOTALLOW = 100006
Crawling is not allowed as specified by robots.txt for this site.
  DOCERR_INVALID_CRAWLSCOPE = 100007
Crawl scope is invalid.
  DOCERR_INVALID_MIME = 100009
Mime types is not allowed for crawl.
  DOCERR_NOHTML = 100010
HTML contents are not present for the url - Occurs when Content-Type is Varying (not handled within Ruya).
Instance Variables [hide private]
  code
Error code.
  type
Type of error.
  value
Value of error.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, code=100000, type=None, value=None)
(Constructor)

source code 
Constructor.
Returns: None
None
Overrides: object.__init__

Note: Please refer to Instance Variables section for details on each parameter.

__str__(self)
(Informal representation operator)

source code 
String representation of this object.
Returns: str
String representation of the url.
Overrides: object.__str__

__repr__(self)
(Representation operator)

source code 
Same as string representation.
Returns: str
String representation of the url.
Overrides: object.__repr__

Instance Variable Details [hide private]

code

Error code. (default DOCERR_INTERNAL)