summaryrefslogtreecommitdiffstats
path: root/emacs.d/lisp/rudel/obby/.svn/text-base/rudel-obby-errors.el.svn-base
blob: 689d4a8ae42717d1bd6c6eefa86a9b9d9a3084cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
;;; rudel-obby-errors.el --- Error data used in the obby Rudel backend
;;
;; Copyright (C) 2009 Jan Moringen
;;
;; Author: Jan Moringen <scymtym@users.sourceforge.net>
;; Keywords: Rudel, obby, errors
;; X-RCS: $Id:$
;;
;; This file is part of Rudel.
;;
;; Rudel 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 3 of the License, or
;; (at your option) any later version.
;;
;; Rudel 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.
;;
;; You should have received a copy of the GNU General Public License
;; along with Rudel. If not, see <http://www.gnu.org/licenses>.


;;; Commentary:
;;
;; This file contains definitions of error conditions and numeric
;; error codes used in the Rudel obby backend.


;;; History:
;;
;; 0.1 - Initial revision.


;;; Code:
;;


;;; Obby protocol error codes
;;

(defconst rudel-obby-error-username-invalid #x0001
  "Error code for invalid username.")

(defconst rudel-obby-error-username-in-use #x0002
  "Error code for username already in use.")

(defconst rudel-obby-error-color-in-use #x0100
  "Error code for color already in use.")

(defconst rudel-obby-error-wrong-global-password #x0101
  "Error code for wrong global password.")

(defconst rudel-obby-error-wrong-user-password #x0102
  "Error code for wrong user password.")

(defconst rudel-obby-error-protocol-version-mismatch #x0103
  "Error code for protocol version mismatch.")

(defconst rudel-obby-error-not-encrypted  #x0104
  "Error code for not encrypted.")

(provide 'rudel-obby-errors)
;;; rudel-obby-errors.el ends here