Mercurial > projects > orange
comparison orange/serialization/SerializationException.d @ 0:f7b078e85f7f
First commit
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Wed, 26 May 2010 17:19:13 +0200 |
parents | |
children | 99c52d46822a |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f7b078e85f7f |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2010 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Jan 30, 2010 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module orange.serialization.SerializationException; | |
8 | |
9 import orange.util.string; | |
10 | |
11 class SerializationException : Exception | |
12 { | |
13 this (string message) | |
14 { | |
15 super(message); | |
16 } | |
17 | |
18 this (string message, string file, long line) | |
19 { | |
20 version (Tango) | |
21 super(message, file, line); | |
22 | |
23 else | |
24 super(message); | |
25 } | |
26 | |
27 this (Exception exception) | |
28 { | |
29 super(exception.msg, exception.file, exception.line, exception.next, exception.info); | |
30 } | |
31 } |