MessageParsingException Class

Definition

Defines the exception associated with a parsing of header.

public ref class MessageParsingException : Microsoft::Rtc::Signaling::RealTimeException
[Serializable]
public class MessageParsingException : Microsoft.Rtc.Signaling.RealTimeException
type MessageParsingException = class
    inherit RealTimeException
Public Class MessageParsingException
Inherits RealTimeException
Inheritance
MessageParsingException
Attributes
SerializableAttribute

Constructors

MessageParsingException()

Initializes a new instance of the class.

MessageParsingException(SerializationInfo, StreamingContext)

Initializes a new instance of the class with serialized data.

MessageParsingException(String)

Initializes a new instance of the class with a specified error message.

MessageParsingException(String, Exception)

Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception.

MessageParsingException(String, Exception, ParsingFailureReason)

Initializes a new instance of the class with a specified error message, reference to the inner exception that is the cause of this exception and the reason parsing failed.

MessageParsingException(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.

Properties

DetectionStackTrace

Gets a string representation of the frames on the call stack at the time the current exception was detected. For exceptions that are transferred to application threads, this provides better diagnostic information than the stack where it was thrown.

(Inherited from RealTimeException)
LineNumber

Line number where parsing error is hit in messae body, its value would be less than 0, if line number is not known or error is not due to message body parsing error.

Reason

Cause of the parsing error

Methods

GetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo with the data needed to serialize the object.

ToString()

Returns the string representation of MessageParsingException, which contains Reason and LineNumber

Applies to