[racket] Exception not being caught?
My eyes were deceiving me. Sorry about that.
Sent from my iPhone
On Sep 4, 2012, at 10:53 AM, Tobias Hammer <tobias.hammer at dlr.de> wrote:
>
>>> (sudoku)
>> Cannot open file /Users/gregwoodhouse/sudoku/puzzles/puzzle-4a.sdk
>> #(struct:exn:fail:filesystem call-with-input-file: cannot open input file
>> path: /Users/gregwoodhouse/sudoku/puzzles/puzzle-4a.sdk
>> system error: Permission denied; errno=13 #<continuation-mark-set>)
>
> and
>
>> (with-handlers
>> ((exn:fail:filesystem?
>> (lambda (exn)
>> (printf " Cannot open file ~a~n~a~n" fname exn)))
>
> match perfectly