Skip to content

PosSharp.Core.UposStateException

github-actions[bot] edited this page May 8, 2026 · 8 revisions

PosSharp v1.2.0 API Reference


UposStateException Class

Exception thrown when a UPOS device is in an invalid state for the requested operation.

public sealed class UposStateException : System.InvalidOperationException

Inheritance System.Object 🡒 System.Exception 🡒 System.SystemException 🡒 System.InvalidOperationException 🡒 UposStateException

Constructors
UposStateException(ControlState, IReadOnlyList<ControlState>, UposErrorCode) Initializes a new instance of the UposStateException class.
UposStateException(string, UposErrorCode) Initializes a new instance of the UposStateException class.
Properties
AllowedStates Gets the list of states that were allowed for the operation.
CurrentState Gets the state of the device at the time the exception was thrown.
ErrorCode Gets the UPOS error code associated with this exception.

Clone this wiki locally