Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
licenseplates
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Taddeüs Kroes
licenseplates
Commits
3cdca55d
Commit
3cdca55d
authored
13 years ago
by
Fabien
Browse files
Options
Downloads
Patches
Plain Diff
Error weggehaald, wordt niet gebruikt
parent
34726b7b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Error.py
+0
-17
0 additions, 17 deletions
src/Error.py
with
0 additions
and
17 deletions
src/Error.py
deleted
100644 → 0
+
0
−
17
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
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment