Author Topic: need help with explaination of catch:OnError  (Read 1851 times)

0 Members and 1 Guest are viewing this topic.

taner

  • Guest
need help with explaination of catch:OnError
« on: December 20, 2008, 01:19:54 AM »
Dear all,

There is a function as below:(http://www.xdcad.net/forum/showthread.php?s=&threadid=13775)

Code: [Select]
(defun catch-error (catch:Protected catch:OnError / catch:err)
    (setq catch:err
       (vl-catch-all-apply catch:Protected)
    )
    (if (and (vl-catch-all-error-p catch:err)
             catch:OnError
        )
        (Apply catch:OnError
           (list (vl-catch-all-error-message catch:err))
        )
        catch:err
    )
 )

I can not understand the argument about catch:OnError , I need some more detailed explaination about it. It is good to give me an example.

Thanks in advance.

FengK

  • Guest
Re: need help with explaination of catch:OnError
« Reply #1 on: December 20, 2008, 03:25:37 AM »
catch:OnError is a function to be called when the function catch:Protected fails. try writing a couple of functions to test. if you need help, one of the members will jump in.

taner

  • Guest
Re: need help with explaination of catch:OnError
« Reply #2 on: December 20, 2008, 04:02:30 AM »
I understand it all at a once!

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: need help with explaination of catch:OnError
« Reply #3 on: December 20, 2008, 03:29:23 PM »
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.