OfferAnswerException Constructor (OfferAnswerFailureReason, String, Exception, IEnumerable<SignalingHeader>, DiagnosticsInformation)
Creates a new instance of the OfferAnswerException class.
Namespace: Microsoft.Rtc.Collaboration
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub New ( _
reason As OfferAnswerFailureReason, _
message As String, _
innerException As Exception, _
signalingHeaders As IEnumerable(Of SignalingHeader), _
diagnosticsInformation As DiagnosticsInformation _
)
'Usage
Dim reason As OfferAnswerFailureReason
Dim message As String
Dim innerException As Exception
Dim signalingHeaders As IEnumerable(Of SignalingHeader)
Dim diagnosticsInformation As DiagnosticsInformation
Dim instance As New OfferAnswerException(reason, _
message, innerException, signalingHeaders, _
diagnosticsInformation)
public OfferAnswerException(
OfferAnswerFailureReason reason,
string message,
Exception innerException,
IEnumerable<SignalingHeader> signalingHeaders,
DiagnosticsInformation diagnosticsInformation
)
Parameters
- reason
Type: Microsoft.Rtc.Collaboration.OfferAnswerFailureReason
Failure reason.
- message
Type: System.String
Exception message string.
- innerException
Type: System.Exception
Inner exception, if any.
- signalingHeaders
Type: System.Collections.Generic.IEnumerable<SignalingHeader>
Signaling headers associated with this exception.
- diagnosticsInformation
Type: Microsoft.Rtc.Signaling.DiagnosticsInformation
Diagnostics information, if any.
Exceptions
Exception | Condition |
---|---|
ArgumentException | Throw when signalingHeaders has an invalid or restricted header. |
ArgumentException | Throw when diagnosticsInformation has an invalid values. |
ArgumentException | Throw when diagnosticsInformation is specified and the signalingHeaders parameter contains diagnostics headers. |