Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

You do not have mail.


devel / comp.lang.lisp / Re: exception handling

SubjectAuthor
* exception handlingJens Kallup
`- Re: exception handlingJens Kallup

1
exception handling

<ktjag9F56qmU2@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17545&group=comp.lang.lisp#17545

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!news.niel.me!nntp.terraraq.uk!nntp-feed.chiark.greenend.org.uk!ewrotcd!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: kallup-dev@web.de (Jens Kallup)
Newsgroups: comp.lang.lisp
Subject: exception handling
Date: Sat, 9 Dec 2023 15:04:55 +0100
Lines: 22
Message-ID: <ktjag9F56qmU2@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net ZjBZ47nwgbcwdzQ+7W9H0wwsw2sCdlZG9Mn5zOxwhqr/Afm1eQ
Cancel-Lock: sha1:cb17miIt4e6r1JYqF7AmKq6Mf5c= sha256:eznyeqhCjInCNCkWMOc3snGOmYpVwvqQWfkh2tmR5lw=
User-Agent: Mozilla Thunderbird
 by: Jens Kallup - Sat, 9 Dec 2023 14:04 UTC

Hello,

I dont understand exception handling in SBCL Common Lisp,

How can I define one or more exceptions, and doing actions
during one exception is raise.

I found examples in the Internet, but they give only demo,
not practise using.

I would do this pseudo-code thing:

(handle-exception (
(progn (write-line "hello")
(write-line (/ 3 0)))
(handle-exception-occurence
division-zero (write-line "error 1" )
file-not-found (write-line "error 2 )))

Is that possible in SBCL ?

Jens

Re: exception handling

<ktjgcfF56qmU4@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17547&group=comp.lang.lisp#17547

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: kallup-dev@web.de (Jens Kallup)
Newsgroups: comp.lang.lisp
Subject: Re: exception handling
Date: Sat, 9 Dec 2023 16:45:18 +0100
Lines: 7
Message-ID: <ktjgcfF56qmU4@mid.individual.net>
References: <ktjag9F56qmU2@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net uDrpS5nwSa7m+Px7d/lrGgUWpsMDU3+iUeCjJCIBLmhDe+zaHU
Cancel-Lock: sha1:raIogG5ii0Ie7tdGVdceTF2mGWM= sha256:Q5HEBu32y4NWTGdh1kPvHyW+JDc22S3Ca//cC+kNz6Q=
User-Agent: Mozilla Thunderbird
In-Reply-To: <ktjag9F56qmU2@mid.individual.net>
 by: Jens Kallup - Sat, 9 Dec 2023 15:45 UTC

Hello,

I found informations on:

https://gigamonkeys.com/book/beyond-exception-handling-conditions-and-restarts.html

Jens

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor