def METHOD_NAME(self, context):
    """Detect the error type associated with an error code and model.
    This will either return:
        * ``self.TRANSIENT_ERROR`` - If the error is a transient error
        * ``self.THROTTLING_ERROR`` - If the error is a throttling error
        * ``None`` - If the error is neither type of error.
    """
    ...