Skip to content

Commit

Permalink
Improving error messages & readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yeisonvargasf committed Sep 9, 2022
1 parent 2bcf15b commit f55921f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Supported Files
+------------------+------------+-----------+
| Pipfile.lock | yes | yes |
+------------------+------------+-----------+
| poetry.lock | yes | no |
+------------------+------------+-----------+
| setup.py | no (# 2_) | no (# 2_) |
+------------------+------------+-----------+
| zc.buildout | no (# 3_) | no (# 3_) |
Expand Down
13 changes: 12 additions & 1 deletion dparse/errors.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import


class UnknownDependencyFileError(Exception):
"""
"""
pass
def __init__(self, message="Unknown File type to parse"):
self.message = message
super().__init__(self.message)


class MalformedDependencyFileError(Exception):

def __init__(self, message="The dependency file is malformed. {info}",
info=""):
self.message = message.format(info=info)
super().__init__(self.message)

0 comments on commit f55921f

Please sign in to comment.