diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/orange/serialization/SerializationException.d	Wed May 26 17:19:13 2010 +0200
@@ -0,0 +1,31 @@
+/**
+ * Copyright: Copyright (c) 2010 Jacob Carlborg.
+ * Authors: Jacob Carlborg
+ * Version: Initial created: Jan 30, 2010
+ * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
+ */
+module orange.serialization.SerializationException;
+
+import orange.util.string;
+
+class SerializationException : Exception
+{	
+	this (string message)
+	{
+		super(message);
+	}
+	
+	this (string message, string file, long line)
+	{
+		version (Tango)
+			super(message, file, line);
+		
+		else
+			super(message);
+	}
+	
+	this (Exception exception)
+	{
+		super(exception.msg, exception.file, exception.line, exception.next, exception.info);
+	}
+}
\ No newline at end of file