]> Shamusworld >> Repos - architektonas/blob - dxflib/src/dl_exception.h
Initial import
[architektonas] / dxflib / src / dl_exception.h
1 /****************************************************************************
2 ** $Id: dl_exception.h 163 2003-07-01 15:51:48Z andrew $
3 **
4 ** Copyright (C) 2001-2003 RibbonSoft. All rights reserved.
5 ** Copyright (C) 2001 Robert J. Campbell Jr.
6 **
7 ** This file is part of the dxflib project.
8 **
9 ** This file may be distributed and/or modified under the terms of the
10 ** GNU General Public License version 2 as published by the Free Software
11 ** Foundation and appearing in the file LICENSE.GPL included in the
12 ** packaging of this file.
13 **
14 ** Licensees holding valid dxflib Professional Edition licenses may use 
15 ** this file in accordance with the dxflib Commercial License
16 ** Agreement provided with the Software.
17 **
18 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
19 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 **
21 ** See http://www.ribbonsoft.com for further details.
22 **
23 ** Contact info@ribbonsoft.com if any conditions of this licensing are
24 ** not clear to you.
25 **
26 **********************************************************************/
27
28 #ifndef DL_EXCEPTION_H
29 #define DL_EXCEPTION_H
30
31 #if _MSC_VER > 1000
32 #pragma once
33 #endif // _MSC_VER > 1000
34
35 /**
36  * Used for exception handling.
37  */
38 class DL_Exception {}
39 ;
40
41 /**
42  * Used for exception handling.
43  */
44 class DL_NullStrExc : public DL_Exception {}
45 ;
46
47 /**
48  * Used for exception handling.
49  */
50 class DL_GroupCodeExc : public DL_Exception {
51     DL_GroupCodeExc(int gc=0) : groupCode(gc) {}
52     int groupCode;
53 };
54 #endif
55