Mercurial > projects > orange
view orange/serialization/SerializationException.d @ 17:c4e7e64ffb67
Changed toData/fromData to take an instance of the serializer instead of the archive.
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 08 Aug 2010 21:59:59 +0200 |
parents | 99c52d46822a |
children | 78e5fef4bbf2 |
line wrap: on
line source
/** * 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; version (Tango) alias Exception ExceptionBase; else alias Throwable ExceptionBase; class SerializationException : ExceptionBase { this (string message) { super(message); } this (string message, string file, long line) { version (Tango) super(message, file, line); else super(message); } version (Tango) { this (ExceptionBase exception) { super(exception.msg, exception.file, exception.line, exception.next, exception.info); } } else { this (ExceptionBase exception) { super(exception.msg, exception.file, exception.line); } } }