API Reference: Error Handlers¶
The error handler builds structured operational error dictionaries. See Error Handling for how to distinguish them from a failed validator policy.
certmonitor.error_handlers ¶
ErrorHandler ¶
Class for handling errors in a flexible manner.
handle_error
staticmethod
¶
Handles errors encountered during certificate retrieval.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
error_type
|
str
|
The type of error. |
required |
message
|
str
|
The error message. |
required |
host
|
str
|
The host where the error occurred. |
required |
port
|
int
|
The port where the error occurred. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
dict
|
A dictionary containing the error details. |