Package mobi :: Package mtld :: Package da :: Package exception :: Module device_atlas_exception
[hide private]
[frames] | no frames]

Source Code for Module mobi.mtld.da.exception.device_atlas_exception

 1  #!/usr/bin/env python 
 2   
 3  """ 
 4  @copyright: 
 5   Copyright (c) 2014 by mTLD Top Level Domain Limited. All rights reserved.\n 
 6   Portions copyright (c) 2008 by Argo Interactive Limited.\n 
 7   Portions copyright (c) 2008 by Nokia Inc.\n 
 8   Portions copyright (c) 2008 by Telecom Italia Mobile S.p.A.\n 
 9   Portions copyright (c) 2008 by Volantis Systems Limited.\n 
10   Portions copyright (c) 2002-2008 by Andreas Staeding.\n 
11   Portions copyright (c) 2008 by Zandan.\n 
12  @author: dotMobi 
13  """ 
14   
15 -class DeviceAtlasException(Exception):
16 """ 17 Superclass representing the base of the exception hierarchy. 18 It makes our exceptions compatible with Python 3. 19 """ 20 21 message = "" 22
23 - def __init__(self, message):
24 """ 25 Constructor to provide the "message" attribute in Python 3. 26 """ 27 self.message = message
28
29 - def __str__(self):
30 return self.message
31