init
This commit is contained in:
12
my_project_name/errors.py
Normal file
12
my_project_name/errors.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# This file holds custom error types that you can define for your application.
|
||||
|
||||
|
||||
class ConfigError(RuntimeError):
|
||||
"""An error encountered during reading the config file.
|
||||
|
||||
Args:
|
||||
msg: The message displayed to the user on error.
|
||||
"""
|
||||
|
||||
def __init__(self, msg: str):
|
||||
super(ConfigError, self).__init__("%s" % (msg,))
|
||||
Reference in New Issue
Block a user