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

Visual Basic (Declaration)
Public 
Sub 
New ( _
	
message 
As 
String, _
	
innerException 
As 
Exception, _
	
errorCause 
As 

ParsingFailureReason, _
	
lineNumber 
As 
Integer _
)
C#
public 
MessageParsingException(
	
string 
message,
	
Exception 
innerException,
	

ParsingFailureReason 
errorCause,
	
int 
lineNumber
)
Visual C++
public:
MessageParsingException(
	
String^ 
message, 
	
Exception^ 
innerException, 
	

ParsingFailureReason 
errorCause, 
	
int 
lineNumber
)
JavaScript

Microsoft.Rtc.Signaling.MessageParsingException = 
function(
message, 
innerException, 
errorCause, 
lineNumber);

Parameters

message
Type: String
The message that describes the error.
innerException
Type: Exception
The exception that is the cause of the current exception.
errorCause
Type: Microsoft.Rtc.Signaling . . :: . ParsingFailureReason
Cause of the parsing error.
lineNumber
Type: 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