Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
licenseplates
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
licenseplates
Commits
3cdca55d
Commit
3cdca55d
authored
Dec 04, 2011
by
Fabien
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Error weggehaald, wordt niet gebruikt
parent
34726b7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
src/Error.py
src/Error.py
+0
-17
No files found.
src/Error.py
deleted
100644 → 0
View file @
34726b7b
import
traceback
class
Error
:
def
__init__
(
self
,
message
=
None
):
stack
=
traceback
.
extract_stack
()
origin_of_call
=
stack
[
0
]
where_it_went_wrong
=
stack
[
1
]
if
message
:
print
message
,
"
\
n
"
print
"Error in"
,
origin_of_call
[
0
],
"on line"
,
origin_of_call
[
1
]
print
" : "
,
origin_of_call
[
3
],
"
\
n
"
# Inside try function, so -2 lines as exept and Error() are 2 lines
print
"Function called in"
,
where_it_went_wrong
[
0
]
print
"around line"
,
(
where_it_went_wrong
[
1
]
-
2
),
"
\
n
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment