forked from WMInfoTech/python-msgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexception.py
More file actions
30 lines (21 loc) · 778 Bytes
/
exception.py
File metadata and controls
30 lines (21 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import logging
logger = logging.getLogger(__name__)
class MicrosoftException(Exception):
"""
An exception raised from the Microsoft Graph API
Attributes:
code (object): The unique code denoting a particular type of exception
message (str): The message describing the exception
"""
def __init__(self, code, message):
super(MicrosoftException, self).__init__(message)
self.code = code
class MicrosoftAuthenticationException(MicrosoftException):
"""
An exception raised while attempting to authenticate with the Microsoft
Graph API
Attributes:
code (object): The unique code denoting a particular type of exception
message (str): The message describing the exception
"""
pass