equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2003-2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Exception class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #if !defined(AFX_SDCEXCEPTION_H__049F8CB9_9764_410A_9A63_A6D5C7A7A090__INCLUDED_) |
|
20 #define AFX_SDCEXCEPTION_H__049F8CB9_9764_410A_9A63_A6D5C7A7A090__INCLUDED_ |
|
21 |
|
22 #if _MSC_VER > 1000 |
|
23 #pragma once |
|
24 #endif // _MSC_VER > 1000 |
|
25 |
|
26 enum TSDCExceptionType |
|
27 { |
|
28 ESDCUnknownError, |
|
29 ESDCFileOpenError, |
|
30 ESDCPrematureEOIError, |
|
31 ESDCSeekError, |
|
32 ESDCParseError, |
|
33 ESDCContentError, |
|
34 ESDCNotSupportedError |
|
35 }; |
|
36 |
|
37 class CSDCException |
|
38 { |
|
39 public: |
|
40 CSDCException(); |
|
41 CSDCException( TSDCExceptionType aType, const char* aDescription ); |
|
42 virtual ~CSDCException(); |
|
43 |
|
44 public: |
|
45 void Print(); |
|
46 |
|
47 public: |
|
48 TSDCExceptionType iType; |
|
49 char iDescription[512]; |
|
50 |
|
51 }; |
|
52 |
|
53 #endif // !defined(AFX_SDCEXCEPTION_H__049F8CB9_9764_410A_9A63_A6D5C7A7A090__INCLUDED_) |