handleRetryDelegateException

Handles exceptions thrown by retryDelegate.

version(TwitchSupport && WithTwitchPlugin)
private
handleRetryDelegateException
(
Exception base
,
const size_t i
,
const bool endlessly
,
const bool headless
)

Parameters

base Exception

The exception to handle.

i size_t

The current retry count.

endlessly bool

Whether or not to endlessly retry.

headless bool

Whether or not we are running headlessly, in which case all terminal output will be skipped.

Throws

MissingBroadcasterTokenException if the delegate throws it. InvalidCredentialsException likewise. EmptyDataJSONException also. ErrorJSONException if the delegate throws it and the JSON embedded contains an error code in the 400-499 range. Exception if the delegate throws it and endlessly is not passed.