Coverage for netbox_data_import/public_refusal.py: 100.00%

4 statements  

« prev     ^ index     » next       coverage.py v7.17.0, created at 2026-10-30 09:47 +0000

1# SPDX-License-Identifier: Apache-2.0 

2# SPDX-FileCopyrightText: 2026 Marcin Zieba <marcinpsk@gmail.com> 

3"""Authored refusal messages that HTTP responses and Jobs may show to the operator.""" 

4 

5 

6class PublicRefusal(Exception): 

7 """Carry public text separately from the exception's internal diagnostic representation.""" 

8 

9 def __init__(self, message: str): 

10 super().__init__(message) 

11 self.operator_message = message