| Contents | Index |
If an error occurs during the task evaluation, ErrorIdentifier contains the identifier property of the MException thrown.
Usage | Task object |
Read-only | Always |
Data type | String |
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.
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 how to solve large problems with minimal effort and reduce simulation time.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |