ROS Code
 All Classes Namespaces Files Functions Variables
roserrors.py
Go to the documentation of this file.
1 """
2 ROS Code Errors File
3 This file contains all the code required for declaring errors
4 """
5 
6 from datetime import datetime
7 
8 # Regular Error and code to inherit
9 
10 
11 class BaseError(object):
12 
13  def __init__(self, message):
14 
15  Exception.__init__(message)
16 
17  self.when = datetime.now()
18 
19 
20 # Exception Conversion Error
21 
22 
24  pass
25 
26 
27 # Exception Wrong Input
28 
29 
30 class WrongInput(BaseError):
31  pass
32 
33 
34 # Exception Unexpected Error
35 
36 
38  pass