MessageParsingException Constructor (String, Exception, ParsingFailureReason, Int32)
Initializes a new instance of the class with a specified error message, reference to the inner exception that is the cause of this exception, the response code, and response text.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
innerException As Exception, _
errorCause As ParsingFailureReason, _
lineNumber As Integer _
)
'Usage
Dim message As String
Dim innerException As Exception
Dim errorCause As ParsingFailureReason
Dim lineNumber As Integer
Dim instance As New MessageParsingException(message, _
innerException, errorCause, lineNumber)
public MessageParsingException(
string message,
Exception innerException,
ParsingFailureReason errorCause,
int lineNumber
)
Parameters
- message
Type: System.String
The message that describes the error.
- innerException
Type: System.Exception
The exception that is the cause of the current exception.
- errorCause
Type: Microsoft.Rtc.Signaling.ParsingFailureReason
Cause of the parsing error.
- lineNumber
Type: System.Int32
Line number where parsing error is hit in message body.
Remarks
If the error is not due to message body parsing the line number would be -1. If the inner exception is an XmlException the line number from the inner exception will be used.
See Also
Reference
MessageParsingException Members