PageRenderTime 15ms CodeModel.GetById 10ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/src/core/sync/exception.d

http://github.com/AlexeyProkhin/druntime
D | 32 lines | 12 code | 4 blank | 16 comment | 0 complexity | 762fd92a114e2d77e014ec787ae4f3a4 MD5 | raw file
 1/**
 2 * Define base class for synchronization exceptions.
 3 *
 4 * Copyright: Copyright Sean Kelly 2005 - 2009.
 5 * License:   $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
 6 * Authors:   Sean Kelly
 7 * Source:    $(DRUNTIMESRC core/sync/_exception.d)
 8 */
 9
10/*          Copyright Sean Kelly 2005 - 2009.
11 * Distributed under the Boost Software License, Version 1.0.
12 *    (See accompanying file LICENSE or copy at
13 *          http://www.boost.org/LICENSE_1_0.txt)
14 */
15module core.sync.exception;
16
17
18/**
19 * Base class for synchronization exceptions.
20 */
21class SyncException : Exception
22{
23    this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable next = null)
24    {
25        super(msg, file, line, next);
26    }
27
28    this(string msg, Throwable next, string file = __FILE__, size_t line = __LINE__)
29    {
30        super(msg, file, line, next);
31    }
32}