Main Content

matlab.mock.history.UnsuccessfulPropertyAccess class

Package: matlab.mock.history
Superclasses: matlab.mock.history.PropertyAccess

Representation of unsuccessful mock object property access

Description

An UnsuccessfulPropertyAccess instance represents the access of a mock object property that threw an exception. The framework constructs instances of the class, so there is no need to construct this class directly.

Properties

expand all

This property is read-only.

Name of the mock object property involved in an interaction, returned as a string scalar.

This property is read-only.

Exception produced by mock property access, returned as a scalar MException object.

Version History

Introduced in R2018a