OverconstrainedError Class
The error of a constraint that cannot be satisfied (https://w3c.github.io/mediacapture-main/#overconstrainederror-interface): a DomException named OverconstrainedError, with the name of the constraint.
public sealed class OverconstrainedError : DomException- Inheritance
DomExceptionOverconstrainedError
Constructors
| Name | Description |
|---|---|
| OverconstrainedError() | Creates an error without constraint name. |
| OverconstrainedError(string?, Exception?) | Creates an error with a message and an inner exception. |
| OverconstrainedError(string, string) | Creates an error. |
OverconstrainedError overloads
OverconstrainedError()
MediaStream.csCreates an error without constraint name.
public OverconstrainedError()OverconstrainedError(string?, Exception?)
MediaStream.csCreates an error with a message and an inner exception.
Parameters
messagestring?- The message.
innerExceptionException?- The inner exception.
OverconstrainedError(string, string)
MediaStream.csProperties
| Name | Description |
|---|---|
| Constraint | Gets the name of the constraint that cannot be satisfied, or an empty string. |
Constraint
MediaStream.csGets the name of the constraint that cannot be satisfied, or an empty string.
public string Constraint { get; }