Class ObsUnknownOutcomeException
- Namespace
- OBSStudioClient.Exceptions
- Assembly
- OBSClient.dll
Represents an exception that is thrown when a change was sent to OBS Studio, and the model does not know whether OBS Studio made it: no answer came in time, the connection ended before the answer, or the answer can not be read.
[Serializable]
public class ObsUnknownOutcomeException : ObsClientException, ISerializable
- Inheritance
-
ObsUnknownOutcomeException
- Implements
- Inherited Members
Remarks
OBS Studio may have made the change, or not. The model reads again the part that the change was about, so ObsModel will show what OBS Studio holds. Do not send the change again without looking at it: for a change that is not repeatable (create something, toggle something) it can be made twice.
Unlike ObsNotReadyException and ObsNotConnectedException this is not certain: those say that OBS Studio did not make the change.
One case is called uncertain that was in fact never sent: a change waits for its turn to be written on the connection while another message is being written, and when OBS Studio does not read that message (a stalled connection) the change gives up after WriteTimeout, or ends with the connection, before one byte of it was written. The client does not tell that from a change that was written and not answered, so the call ends with this exception all the same, and the message says that the request was sent. Looking at what the model shows (it reads again) is right in both cases.
Constructors
- ObsUnknownOutcomeException(string, Exception)
Initializes a new instance of the ObsUnknownOutcomeException class.
Properties
- Operation
Gets what was being done.