Documentation

xPCException

Construct new instance of xPCException class

Syntax

public xPCException()
public xPCException(string message)
public xPCException(string message, Exception inner)
public xPCException(SerializationInfo info, StreamingContext context)
public xPCException(int errId, string message, xPCTargetPC tgt)

Description

Class: xPCException Class

Constructor

Namespace: MathWorks.xPCTarget.FrameWork

Syntax Language: C#

public xPCException() initializes a new instance of the xPCException class.

public xPCException(string message) initializes a new instance of the xPCException class with message. message is a character string that contains the text of the error message.

public xPCException(string message, Exception inner) initializes a new instance of the xPCException class with message and inner. message is a character string. inner is a nested Exception object.

public xPCException(SerializationInfo info, StreamingContext context) initializes a new instance of the xPCException class with serialization information, info, and streaming context, context. info is a SerializationInfo object. context is a StreamingContext object.

public xPCException(int errId, string message, xPCTargetPC tgt) initializes a new instance of the xPCException class. errID is a 32–bit integer that contains the error ID numbers as defined in matlabroot\toolbox\rtw\targets\xpc\api\xpcapiconst.h. message is an error message character string. tgt is the xPCTargetPC object that raised the error.

Introduced in R2009b

Was this topic helpful?