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
DomException OverconstrainedError

Constructors

NameDescription
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.cs

Creates an error without constraint name.

public OverconstrainedError()

OverconstrainedError(string?, Exception?)

MediaStream.cs

Creates an error with a message and an inner exception.

public OverconstrainedError(string? message, Exception? innerException)
Parameters
message string?
The message.
innerException Exception?
The inner exception.

OverconstrainedError(string, string)

MediaStream.cs

Creates an error.

public OverconstrainedError(string constraint, string message = "")
Parameters
constraint string
The name of the constraint that cannot be satisfied, or an empty string.
message string
The message of the error.
See also

Properties

NameDescription
ConstraintGets the name of the constraint that cannot be satisfied, or an empty string.

Constraint

MediaStream.cs

Gets the name of the constraint that cannot be satisfied, or an empty string.

public string Constraint { get; }