FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
vim-python-docstring/python/ibis/errors.py at master · mflova/vim-python-docstring · GitHub
mflova
/
vim-python-docstring
Public
forked from
pixelneo/vim-python-docstring
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
vim-python-docstring
/
python
/
ibis
/
errors.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
82 lines (51 loc) · 1.6 KB
Breadcrumbs
vim-python-docstring
/
python
/
ibis
/
errors.py
Copy path
File metadata and controls
82 lines (51 loc) · 1.6 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# --------------------------------------------------------------------------
# Error handlers.
# --------------------------------------------------------------------------
class
TemplateError
(
Exception
):
""" Base class for all exceptions raised by the template engine. """
pass
class
LoadError
(
TemplateError
):
""" Error attempting to load a template file. """
pass
class
NestingError
(
TemplateError
):
""" Improperly nested template tags. """
pass
class
InvalidTag
(
TemplateError
):
""" Unrecognised template tag. """
pass
class
InvalidFilter
(
TemplateError
):
""" Unrecognised filter name. """
pass
class
TemplateSyntaxError
(
TemplateError
):
""" Invalid template syntax. """
pass
class
CallError
(
TemplateError
):
""" Raised if a callable variable throws an exception. """
pass
class
FilterError
(
TemplateError
):
""" Raised if a filter function throws an exception. """
pass
class
UnpackingError
(
TemplateError
):
""" Raised if an attempt to unpack a for-loop variable fails. """
pass
class
TemplateNotFound
(
TemplateError
):
""" Raised if a loader cannot locate a template. """
pass
class
Undefined
:
""" Null type returned when a context lookup fails. """
def
__str__
(
self
):
return
''
def
__bool__
(
self
):
return
False
def
__len__
(
self
):
return
0
def
__contains__
(
self
,
key
):
return
False
def
__iter__
(
self
):
return
self
def
__next__
(
self
):
raise
StopIteration
def
__eq__
(
self
,
other
):
return
False
def
__ne__
(
self
,
other
):
return
True
Back
|
FazBrowse Home
|
New Git URL