17
17
"""
18
18
import json
19
19
20
- ## Base Plotly Error ##
21
20
21
+ # Base Plotly Error
22
22
class PlotlyError (Exception ):
23
23
pass
24
24
25
25
26
-
27
26
class InputError (PlotlyError ):
28
27
pass
29
28
@@ -57,8 +56,7 @@ def __str__(self):
57
56
return self .message
58
57
59
58
60
- ## Grid Errors ##
61
-
59
+ # Grid Errors #
62
60
COLUMN_NOT_YET_UPLOADED_MESSAGE = (
63
61
"Hm... it looks like your column '{column_name}' hasn't "
64
62
"been uploaded to Plotly yet. You need to upload your "
@@ -73,14 +71,14 @@ def __str__(self):
73
71
"can't have duplicate column names. Rename "
74
72
"the column \" {0}\" and try again."
75
73
)
76
- ## Would Cause Server Errors ##
74
+
75
+ # Would Cause Server Errors
77
76
78
77
class PlotlyEmptyDataError (PlotlyError ):
79
78
pass
80
79
81
80
82
- ## Graph Objects Errors ##
83
-
81
+ # Graph Objects Errors
84
82
class PlotlyGraphObjectError (PlotlyError ):
85
83
def __init__ (self , message = '' , path = None , notes = None , plain_message = '' ):
86
84
self .message = message
@@ -196,8 +194,7 @@ def __init__(self, obj='', index='', **kwargs):
196
194
** kwargs )
197
195
198
196
199
- ## Local Config Errors ##
200
-
197
+ # Local Config Errors
201
198
class PlotlyLocalError (PlotlyError ):
202
199
pass
203
200
@@ -218,8 +215,7 @@ def __init__(self):
218
215
super (PlotlyLocalCredentialsError , self ).__init__ (message )
219
216
220
217
221
- ## Server Errors ##
222
-
218
+ # Server Errors
223
219
class PlotlyServerError (PlotlyError ):
224
220
pass
225
221
0 commit comments