comparison orange/serialization/SerializationException.d @ 9:99c52d46822a

Serialization works now with D2, deserialization still doesn't work
author Jacob Carlborg <doob@me.com>
date Sat, 24 Jul 2010 18:58:18 +0200
parents f7b078e85f7f
children 78e5fef4bbf2
comparison
equal deleted inserted replaced
8:613a0bb20207 9:99c52d46822a
6 */ 6 */
7 module orange.serialization.SerializationException; 7 module orange.serialization.SerializationException;
8 8
9 import orange.util.string; 9 import orange.util.string;
10 10
11 class SerializationException : Exception 11 version (Tango)
12 alias Exception ExceptionBase;
13
14 else
15 alias Throwable ExceptionBase;
16
17 class SerializationException : ExceptionBase
12 { 18 {
13 this (string message) 19 this (string message)
14 { 20 {
15 super(message); 21 super(message);
16 } 22 }
22 28
23 else 29 else
24 super(message); 30 super(message);
25 } 31 }
26 32
27 this (Exception exception) 33 version (Tango)
28 { 34 {
29 super(exception.msg, exception.file, exception.line, exception.next, exception.info); 35 this (ExceptionBase exception)
36 {
37 super(exception.msg, exception.file, exception.line, exception.next, exception.info);
38 }
39 }
40
41 else
42 {
43 this (ExceptionBase exception)
44 {
45 super(exception.msg, exception.file, exception.line);
46 }
30 } 47 }
31 } 48 }