Skip to content

Commit

Permalink
Removed unused exception classes
Browse files Browse the repository at this point in the history
  • Loading branch information
bcb committed Nov 15, 2015
1 parent 43dd7d9 commit 00d14d4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
16 changes: 0 additions & 16 deletions jsonrpcclient/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,6 @@ class JsonRpcClientError(Exception):
pass


class ReceivedNoResponse(JsonRpcClientError):
"""A response message was expected, but none was given."""

def __init__(self):
super(ReceivedNoResponse, self).__init__(
'No response was received')


class UnwantedResponse(JsonRpcClientError):
"""A response was not requested, but one was given anyway."""

def __init__(self):
super(UnwantedResponse, self).__init__(
'An unwanted response was given')


class ParseResponseError(JsonRpcClientError):
"""The response was not valid JSON."""

Expand Down
8 changes: 0 additions & 8 deletions test/unit/test_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@

class TestExceptions(TestCase):

def test_ReceivedNoResponse(self):
with self.assertRaises(exceptions.ReceivedNoResponse):
raise exceptions.ReceivedNoResponse

def test_UnwantedResponse(self):
with self.assertRaises(exceptions.UnwantedResponse):
raise exceptions.UnwantedResponse

def test_ParseResponseError(self):
with self.assertRaises(exceptions.ParseResponseError):
raise exceptions.ParseResponseError
Expand Down

0 comments on commit 00d14d4

Please sign in to comment.