Main Content

matlab.mock.history.UnsuccessfulMethodCall Class

Namespace: matlab.mock.history
Superclasses: matlab.mock.history.MethodCall

Representation of unsuccessful mock object method call

Description

A matlab.mock.history.UnsuccessfulMethodCall object represents the call to a mock object method that threw an error. The mocking framework instantiates this class. You do not need to create an object of the class directly.

Class Attributes

Sealed
true

For information on class attributes, see Class Attributes.

Properties

expand all

Name of the mock object method, returned as a string scalar.

Attributes:

GetAccess
public
SetAccess
immutable

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

Attributes:

GetAccess
public
SetAccess
immutable

Error thrown by the mock object interaction, returned as an MException object.

Attributes:

GetAccess
public
SetAccess
immutable

Version History

Introduced in R2018a