MCPcopy Create free account
hub / github.com/authlib/authlib / __init__

Method __init__

authlib/common/errors.py:14–23  ·  view source on GitHub ↗
(self, error=None, description=None, uri=None)

Source from the content-addressed store, hash-verified

12 uri = None
13
14 def __init__(self, error=None, description=None, uri=None):
15 if error is not None:
16 self.error = error
17 if description is not None:
18 self.description = description
19 if uri is not None:
20 self.uri = uri
21
22 message = f"{self.error}: {self.description}"
23 super().__init__(message)
24
25 def __repr__(self):
26 return f'<{self.__class__.__name__} "{self.error}">'

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected