Main Content

matlab.mock.history.UnsuccessfulMethodCall class

Package: matlab.mock.history
Superclasses: matlab.mock.history.MethodCall

Representation of unsuccessful mock object method call


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


expand all

This property is read-only.

Name of the mock object method called during an interaction, returned as a string scalar.

This property is read-only.

Inputs passed to mock object method, returned as a cell vector.

This property is read-only.

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

Version History

Introduced in R2018a