BusyError
class optris_sdk.errors.BusyError(SdkError)
The camera would not carry the operation out, and may next time.
Either something else holds the camera, or the hardware declined to
finish something it accepts -- an operation-mode switch whose
stream will not come back up in the new format is the case
OPTRIS_SDK_ERROR_BUSY was added for. The SDK has already
retried before raising this.
It is deliberately not ConfigurationError: nothing about
the request was wrong, and repeating the same call a moment later
is a reasonable response, which is true of no other error here.
Read reason before showing anything to an operator.
One status covers four unrelated conditions and they want
different answers:
BUSY_REASON_CLAIMED_BY_ANOTHER_PROCESS
Another program has it. Worth saying, and worth retrying.
holder names it when the platform can.
BUSY_REASON_ALREADY_OPEN_IN_THIS_PROCESS
This program already has it. Retrying cannot help, and showing
it as another application's is wrong.
BUSY_REASON_HANDOVER_IN_THIS_PROCESS
This program is still opening or releasing it. Succeeds once
that finishes.
BUSY_REASON_FORMAT_NOT_ACCEPTED
Nothing holds the camera. The stream would not come up in
the format the operation needs, so "in use" is simply false.
BUSY_REASON_UNKNOWN is not an answer -- it is what a refusal
that carried no reason reports -- so decide nothing on it that a
named reason would have decided.
- Attribute
reason— one of theBUSY_REASON_*values. - Attribute
holder— the program holding the claim, or''. Show it; do not parse it. Empty is a real case, and empty for every reason other thanBUSY_REASON_CLAIMED_BY_ANOTHER_PROCESS. - Attribute
claim_path— the claim file the refusal is about, or''. Worth putting in a support report: a claim nobody can account for is a stale lock file, and this says which one.