MessageParsingException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
MessageParsingException() |
Initializes a new instance of the class. |
MessageParsingException(String) |
Initializes a new instance of the class with a specified error message. |
MessageParsingException(SerializationInfo, StreamingContext) |
Initializes a new instance of the class with serialized data. |
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. |
MessageParsingException()
Initializes a new instance of the class.
public:
MessageParsingException();
public MessageParsingException ();
Public Sub New ()
Applies to
MessageParsingException(String)
Initializes a new instance of the class with a specified error message.
public:
MessageParsingException(System::String ^ message);
public MessageParsingException (string message);
new Microsoft.Rtc.Signaling.MessageParsingException : string -> Microsoft.Rtc.Signaling.MessageParsingException
Public Sub New (message As String)
Parameters
- message
- String
The message that describes the error.
Applies to
MessageParsingException(SerializationInfo, StreamingContext)
Initializes a new instance of the class with serialized data.
protected:
MessageParsingException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected MessageParsingException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.Rtc.Signaling.MessageParsingException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.Rtc.Signaling.MessageParsingException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
The object that holds the serialized object data.
- context
- StreamingContext
The contextual information about the source or destination.
Applies to
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.
public:
MessageParsingException(System::String ^ message, Exception ^ innerException);
public MessageParsingException (string message, Exception innerException);
new Microsoft.Rtc.Signaling.MessageParsingException : string * Exception -> Microsoft.Rtc.Signaling.MessageParsingException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The message that describes the error.
- innerException
- Exception
The exception that is the cause of the current exception.
Applies to
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.
public:
MessageParsingException(System::String ^ message, Exception ^ innerException, Microsoft::Rtc::Signaling::ParsingFailureReason errorCause);
public MessageParsingException (string message, Exception innerException, Microsoft.Rtc.Signaling.ParsingFailureReason errorCause);
new Microsoft.Rtc.Signaling.MessageParsingException : string * Exception * Microsoft.Rtc.Signaling.ParsingFailureReason -> Microsoft.Rtc.Signaling.MessageParsingException
Public Sub New (message As String, innerException As Exception, errorCause As ParsingFailureReason)
Parameters
- message
- String
The message that describes the error.
- innerException
- Exception
The exception that is the cause of the current exception.
- errorCause
- ParsingFailureReason
Cause of the parsing error.
Applies to
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.
public:
MessageParsingException(System::String ^ message, Exception ^ innerException, Microsoft::Rtc::Signaling::ParsingFailureReason errorCause, int lineNumber);
public MessageParsingException (string message, Exception innerException, Microsoft.Rtc.Signaling.ParsingFailureReason errorCause, int lineNumber);
new Microsoft.Rtc.Signaling.MessageParsingException : string * Exception * Microsoft.Rtc.Signaling.ParsingFailureReason * int -> Microsoft.Rtc.Signaling.MessageParsingException
Public Sub New (message As String, innerException As Exception, errorCause As ParsingFailureReason, lineNumber As Integer)
Parameters
- message
- String
The message that describes the error.
- innerException
- Exception
The exception that is the cause of the current exception.
- errorCause
- ParsingFailureReason
Cause of the parsing error.
- lineNumber
- 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.