Debian Codegraph @

ansible_collections/dellemc/unity/tests/unit/plugins/module_utils/mock_api_exception.py

raw symbols SCIP
1 # Copyright: (c) 2022, Dell Technologies
2
3 # Apache License version 2.0 (see MODULE-LICENSE or http://www.apache.org/licenses/LICENSE-2.0.txt)
4
5 """Mock ApiException for Unity Test modules"""
6
7 from __future__ import (absolute_import, division, print_function)
8
9 __metaclass__ = type
10
11
12 class MockApiException(Exception):
13 body = "SDK Error message"
14 status = "500"
15
16
17 class HttpError(Exception):
18 body = "Http Error message"
19 http_status = 401