s@rdalya

 

Try

Page history last edited by v 3 yrs ago


 

Try

(extends Object)


Object Summary

Try object is used to consequtively call a number of functions. The good thing about it is all the functions passed as parameters to Try will be executed even if they generate errors. All the errors thrown will be ignored.


Constructor

This object is statically accessed.


Methods

 

Try.these(varargin)

 

parameters

varargin - Variable number of arguments as anonymous functions.

 

comments

Executes all the functions one by one until one of them does not generate an error.

Trial operation stops whenever a passed function reference is executed successfully, without generating an error.


Try.all(varargin)

 

parameters

varargin - Variable number of arguments as anonymous functions.

 

comments

Similar to Try.these. The major difference is this method executes all the functions one by one.

The execution does not stop, even if a function is executed successfully.

All the functions that are passed as parameters will be called no matter what.


See Also

 

None given.


Usage Examples

 

Comments (0)

You don't have permission to comment on this page.