Class
RtfUnexpectedElementException

Thrown when RTF import encounters an unexpected element type where a specific element was required.

Definition

Namespace:Telerik.Windows.Documents.Flow.FormatProviders.Rtf.Exceptions

Assembly:Telerik.Windows.Documents.Flow.dll

Syntax:

cs-api-definition
public class RtfUnexpectedElementException : RtfException, ISerializable

Inheritance: objectExceptionRtfExceptionRtfUnexpectedElementException

Implements: ISerializable

Inherited Members Exception.GetBaseException()Exception.ToString()Exception.GetType()Exception.TargetSiteException.MessageException.DataException.InnerExceptionException.HelpLinkException.SourceException.HResultException.StackTraceException.SerializeObjectState

Constructors

RtfUnexpectedElementException()

Initializes a new instance of the RtfUnexpectedElementException class.

Declaration

cs-api-definition
public RtfUnexpectedElementException()

RtfUnexpectedElementException(SerializationInfo, StreamingContext)

Initializes a new instance of the RtfUnexpectedElementException class.

Declaration

cs-api-definition
protected RtfUnexpectedElementException(SerializationInfo info, StreamingContext context)

Parameters

info

SerializationInfo

The info.

context

StreamingContext

The context.

RtfUnexpectedElementException(string)

Initializes a new instance of the RtfUnexpectedElementException class.

Declaration

cs-api-definition
public RtfUnexpectedElementException(string message)

Parameters

message

string

The message.

RtfUnexpectedElementException(string, Exception)

Initializes a new instance of the RtfUnexpectedElementException class.

Declaration

cs-api-definition
public RtfUnexpectedElementException(string message, Exception cause)

Parameters

message

string

The message.

cause

Exception

The cause.

RtfUnexpectedElementException(string, string)

Initializes a new instance of the RtfUnexpectedElementException class.

Declaration

cs-api-definition
public RtfUnexpectedElementException(string expected, string actual)

Parameters

expected

string

The expected.

actual

string

The actual.

RtfUnexpectedElementException(string, string, string)

Initializes a new instance of the RtfUnexpectedElementException class.

Declaration

cs-api-definition
public RtfUnexpectedElementException(string expected, string actual, string message)

Parameters

expected

string

The expected.

actual

string

The actual.

message

string

The message.

Properties

Actual

Gets the actual element type or value that was encountered at the parsing location.

Declaration

cs-api-definition
public string Actual { get; }

Property Value

string

The actual.

Expected

Gets the expected element type or value that was required at the parsing location.

Declaration

cs-api-definition
public string Expected { get; }

Property Value

string

The expected.

Methods

GetObjectData(SerializationInfo, StreamingContext)

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

Declaration

cs-api-definition
[SecurityCritical]
public override void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info

SerializationInfo

The SerializationInfo to populate with data.

context

StreamingContext

The destination (see StreamingContext) for this serialization.

Exceptions

SecurityException

The caller does not have the required permission.

Overrides Exception.GetObjectData(SerializationInfo, StreamingContext)