Skip to main content

SuccessAndFailureCounter

No overview available.

Methods


Inc()

@classmethod
def Inc(
err: *error
)

Increments either the success or failure counter based on the provided error. This method is used to track the outcomes of operations, incrementing the success counter if 'err' is nil, or the failure counter otherwise.

Parameters

NameTypeDescription
err*errorAn error object; if nil, the success counter is incremented, otherwise the failure counter is incremented.