There are only two callers Command and foreachProtectedCall. In foreachProtectedCall change parameter list to accept an 'errhandler' in place of 'logger', errhandler(errmsg). If errhandler is nil ignore the error. In Command allow an overridable error handler to be defined in the class.
There are only two callers
CommandandforeachProtectedCall. InforeachProtectedCallchange parameter list to accept an 'errhandler' in place of 'logger',errhandler(errmsg). If errhandler is nil ignore the error. In Command allow an overridable error handler to be defined in the class.