Created
November 19, 2021 11:01
-
-
Save kelvingakuo/1c943226053481a85759b9634d0efe6b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ParsingErrorException(Exception): | |
__module__ = 'builtins' | |
class LexingErrorException(Exception): | |
__module__ = 'builtins' | |
# Usage | |
raise LexingErrorException(f"Syntax error occured near: {}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment