Skip to content
Snippets Groups Projects
Verified Commit 79c17085 authored by Renato Alves's avatar Renato Alves :seedling:
Browse files

Add files after python session and annotations

parent 4c15a5a7
No related branches found
No related tags found
No related merge requests found
class MyExceptionValue(ValueError):
def __init__(self, error_code):
self.error_code = error_code
def __str__(self):
return f"The error number was {self.error_code}"
def __repr__(self):
return f"<Exception>: The error number was {self.error_code}"
def func():
raise MyExceptionValue(404)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment