pyrit.exceptions.PyritException# exception PyritException(*, status_code: int = 500, message: str = 'An error occurred')[source]# Bases: Exception, ABC Base exception class for PyRIT components. process_exception() → str[source]# Log and return a JSON string representation of the exception. Returns: Serialized status code and message. Return type: str