srfi-36.stk 2.16 KB
Newer Older
eg's avatar
eg committed
1 2
;;;;
;;;; srfi-36.stk	-- SRFI-36 support (I/O Conditions)
3 4 5 6
;;;;
;;;; Copyright © 2004-2005 Erick Gallesio - I3S-CNRS/ESSI <eg@essi.fr>
;;;;
;;;;
eg's avatar
eg committed
7 8 9 10
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
11
;;;;
eg's avatar
eg committed
12 13 14 15
;;;; This program is distributed in the hope that it will be useful,
;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;;; GNU General Public License for more details.
16
;;;;
eg's avatar
eg committed
17 18
;;;; You should have received a copy of the GNU General Public License
;;;; along with this program; if not, write to the Free Software
19
;;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
eg's avatar
eg committed
20
;;;; USA.
21
;;;;
eg's avatar
eg committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
;;;;           Author: Erick Gallesio [eg@essi.fr]
;;;;    Creation date:  1-Jun-2004 12:33 (eg)
;;;; Last file update: 24-Mar-2005 09:48 (eg)
;;;;


(%define-condition-type-accessors &i/o-error &error
  i/o-error?)

(%define-condition-type-accessors &i/o-port-error &i/o-error
  i/o-port-error?
  (port i/o-error-port))

(%define-condition-type-accessors &i/o-read-error &i/o-port-error
  i/o-read-error?)

(%define-condition-type-accessors &i/o-write-error &i/o-port-error
  i/o-write-error?)

(%define-condition-type-accessors &i/o-closed-error &i/o-port-error
  i/o-closed-error?)

(%define-condition-type-accessors &i/o-filename-error &i/o-error
  i/o-filename-error?
  (filename i/o-error-filename))

(%define-condition-type-accessors &i/o-malformed-filename-error &i/o-filename-error
  i/o-malformed-filename-error?)

(%define-condition-type-accessors &i/o-file-protection-error &i/o-filename-error
  i/o-file-protection-error?)

(%define-condition-type-accessors &i/o-file-is-read-only-error
				  &i/o-file-protection-error
  i/o-file-is-read-only-error?)

(%define-condition-type-accessors &i/o-file-already-exists-error &i/o-filename-error
  i/o-file-already-exists-error?)

(%define-condition-type-accessors &i/o-no-such-file-error &i/o-filename-error
  i/o-no-such-file-error?)


(provide "srfi-36")