Skip to Main Content Skip to Search
Product Documentation

ErrorIdentifier - Task error identifier

Description

If an error occurs during the task evaluation, ErrorIdentifier contains the identifier property of the MException thrown.

Characteristics

Usage

Task object

Read-only

Always

Data type

String

Values

ErrorIdentifier is empty before an attempt to run a task, and remains empty if the evaluation of a task function does not produce an error or if the error did not provide an identifier. ErrorIdentifier has the same value as the identifier property of the task's Error.

When using a job manager, ErrorIdentifier indicates if a worker has crashed during task execution, but when using a different scheduler ErrorIdentifier does not indicate a crash.

Examples

Error Identifier Retrieval

Retrieve the error identifier from a task object.

jm = findResource('scheduler','type','local');
j = createJob(jm);
a = [1 2 3 4]; % Note: matrix not square.
t = createTask(j, @inv, 1, {a});
submit(j)
waitForState(j)
e_id = get(t,'ErrorIdentifer')
e_id =
MATLAB:square

See Also

Properties

Error, ErrorMessage, Function

  


Free Parallel Computing Interactive Kit

See how to solve large problems with minimal effort and reduce simulation time.

Get free kit

Trials Available

Try the latest versions of parallel computing products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS