copp.diag.CoppError

Facade for MATLAB exceptions raised by COPP MEX calls.

Syntax

obj = copp.diag.CoppError(identifier, message, category, native_status, detail)

Description

MATLAB catch blocks receive MException objects. CoppError wraps those exceptions so user code can inspect COPP-specific category/detail fields.

Input Arguments

identifier

Input value for copp.diag.CoppError. See Description for accepted shape and constraints. Default: "copp:NativeError"

message

Input value for copp.diag.CoppError. See Description for accepted shape and constraints. Default: ""

category

Input value for copp.diag.CoppError. See Description for accepted shape and constraints. Default: "NativeError"

native_status

Input value for copp.diag.CoppError. See Description for accepted shape and constraints. Default: []

detail

Input value for copp.diag.CoppError. See Description for accepted shape and constraints. Default: ""

Properties

Methods

to_exception

Convert this facade back to a MATLAB MException.

Method Details

CoppError

Syntax

obj = copp.diag.CoppError(identifier, message, category, native_status, detail)

to_exception

Syntax

err = to_exception(obj)

throw_as_caller

Syntax

throw_as_caller(obj)

is_copp_error

Syntax

tf = is_copp_error(err)

from_exception

Syntax

obj = from_exception(err)

See Also

copp.diag