Documentation

xPCException Class

Information for xPCException

Syntax

public class xPCException : Exception, ISerializable

Description

Namespace: MathWorks.xPCTarget.FrameWork

Syntax Language: C#

public class xPCException : Exception, ISerializable accesses information on Simulink® Real-Time™ exceptions.

Constructor

ConstructorDescription
xPCExceptionConstruct new instance of xPCException class

Properties

PropertyC# Declaration SyntaxDescription

Data

public virtual IDictionary Data {get;}

Get collection of key/value pairs that provide additional user-defined information about the exception.

HelpLink

public virtual string HelpLink {get; set;}

Get or set link to the help file associated with this exception.

InnerException

public Exception InnerException {get;}

Get Exception instance that caused the current exception.

Message

public override string Message {get;}

Get exception message. Overrides Exception.Message property.

Reason

public xPCExceptionReason Reason {get;}

Get xPCExceptionReason reason. See xPCExceptionReason Enumerated Data Type.

Source

public virtual string Source {get; set;}

Get or set name of real-time application or object that causes the error.

StackTrace

public virtual string StackTrace {get;}

Get character string representation of the frames on the call stack at the time the method emits the current exception.

TargetPCObject

public xPCTargetPC TargetPCObject {get;}

Get xPCTargetPC object that raised the error.

TargetSite

public MethodBase TargetSite {get;}

Get method that emits the current exception.

Introduced in R2011b

Was this topic helpful?