cleverly.exceptions.RefusalReason#
- class cleverly.exceptions.RefusalReason(*values)[source]#
Why the package refuses a request.
The code says where the problem is, and so what a caller can do about it.
- Attributes:
- INVALID_DECLARATION
The requested analysis cannot run on the declared sample or design. The message states the failed condition.
- DIFFERENT_ESTIMAND
The requested option changes the causal question. The message names both questions.
- IMPLEMENTATION_GAP
A valid method has no implementation here yet. The message names the available alternatives and the roadmap item that tracks the gap.
- INFERENCE_GAP
The estimate exists, but the requested uncertainty calculation is incomplete. The message offers the supported inference.
- API_REDIRECTION
The feature exists through another argument or object. The message points to a working call. This code does not mark a missing capability.
Methods#
Attributes#
- RefusalReason.INVALID_DECLARATION = 'invalid_declaration'#
- RefusalReason.DIFFERENT_ESTIMAND = 'different_estimand'#
- RefusalReason.IMPLEMENTATION_GAP = 'implementation_gap'#
- RefusalReason.INFERENCE_GAP = 'inference_gap'#
- RefusalReason.API_REDIRECTION = 'api_redirection'#