Permalink
Newer
Older
100644 79 lines (59 sloc) 1.8 KB
1
;;; rudel-errors.el --- Error data used in Rudel
2
;;
3
;; Copyright (C) 2009, 2010 Jan Moringen
4
;;
5
;; Author: Jan Moringen <scymtym@users.sourceforge.net>
6
;; Keywords: rudel, errors, conditions
7
;; X-RCS: $Id:$
8
;;
9
;; This file is part of Rudel.
10
;;
11
;; Rudel is free software: you can redistribute it and/or modify it
12
;; under the terms of the GNU General Public License as published by
13
;; the Free Software Foundation, either version 3 of the License, or
14
;; (at your option) any later version.
15
;;
16
;; Rudel is distributed in the hope that it will be useful, but
17
;; WITHOUT ANY WARRANTY; without even the implied warranty of
18
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
;; General Public License for more details.
20
;;
21
;; You should have received a copy of the GNU General Public License
22
;; along with Rudel. If not, see <http://www.gnu.org/licenses>.
23
24
25
;;; Commentary:
26
;;
27
;; The following condition hierarchy is defined:
28
;;
29
;; error
30
;; + rudel-error
31
;; + rudel-incomplete-info
32
;; + rudel-join-error
33
;; + rudel-host-error
34
35
36
;;; History:
37
;;
38
;; 0.1 - Initial version
39
40
41
;;; Code:
42
;;
43
44
;; rudel-incomplete-info
45
46
(intern "rudel-incomplete-info")
47
48
(put 'rudel-incomplete-info 'error-conditions
49
'(error
50
rudel-error rudel-incomplete-info))
51
52
(put 'rudel-incomplete-info 'error-message
53
"Required properties missing in property list")
54
55
;; rudel-join-error
56
57
(intern "rudel-join-error")
58
59
(put 'rudel-join-error 'error-conditions
61
rudel-error rudel-join-error))
62
63
(put 'rudel-join-error 'error-message
64
"Could not join session")
65
66
;; rudel-host-error
67
68
(intern "rudel-host-error")
69
70
(put 'rudel-host-error 'error-conditions
72
rudel-error rudel-host-error))
73
74
(put 'rudel-host-error 'error-message
75
"Could not host session")
76
77
(provide 'rudel-errors)
78
;;; rudel-errors.el ends here