HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.  2.0.0-chaika
Hierarchical Cluster Engine Python language binding
Exceptions.py
Go to the documentation of this file.
1 '''
2 Created on Apr 11, 2014
3 
4 @package: dtm
5 @author: scorp, bgv
6 @link: http://hierarchical-cluster-engine.com/
7 @copyright: Copyright © 2013-2014 IOIX Ukraine
8 @license: http://hierarchical-cluster-engine.com/license/
9 @since: 0.1
10 '''
11 
12 import app.Consts as APP_CONSTS
13 
14 
15 # #Exceptions module keepts common exceptions
16 class DeserilizeException(Exception):
17  def __init__(self, message):
18  Exception.__init__(self, message)
19 
20 
22  def __init__(self, message):
23  Exception.__init__(self, message)
24 
25 
26 class UrlParseException(Exception):
27  def __init__(self, message):
28  Exception.__init__(self, message)
29 
30 
31 class SeleniumFetcherException(Exception):
32  def __init__(self, message, code=APP_CONSTS.ERROR_FETCHER_INTERNAL):
33  Exception.__init__(self, message)
34 
35  self.code = code
36 
37 
38 class ProxyException(Exception):
39  def __init__(self, message, code=APP_CONSTS.ERROR_NOT_EXIST_ANY_VALID_PROXY, statusUpdate=None):
40  Exception.__init__(self, message)
41 
42  self.code = code
43  self.statusUpdate = statusUpdate
44 
45 
46 class UrlAvailableException(Exception):
47  def __init__(self, message, code=APP_CONSTS.ERROR_CONNECTION_ERROR):
48  Exception.__init__(self, message)
49 
50  self.code = code
51 
52 
53 class DatabaseException(Exception):
54  def __init__(self, message):
55  Exception.__init__(self, message)
def __init__(self, message)
Definition: Exceptions.py:54
def __init__(self, message, code=APP_CONSTS.ERROR_FETCHER_INTERNAL)
Definition: Exceptions.py:32
def __init__(self, message, code=APP_CONSTS.ERROR_NOT_EXIST_ANY_VALID_PROXY, statusUpdate=None)
Definition: Exceptions.py:39
def __init__(self, message, code=APP_CONSTS.ERROR_CONNECTION_ERROR)
Definition: Exceptions.py:47
def __init__(self, message)
Definition: Exceptions.py:27