|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 using System; |
|
18 using System.Text; |
|
19 using System.IO; |
|
20 using System.Collections.Generic; |
|
21 using CrashAnalyserEngine.Plugins; |
|
22 |
|
23 namespace CAPCrashAnalysis.CommandLine |
|
24 { |
|
25 internal class CACmdLineException : Exception |
|
26 { |
|
27 #region Constructors |
|
28 public CACmdLineException( string aMessage ) |
|
29 : this( aMessage, CAPlugin.KErrCommandLineGeneral ) |
|
30 { |
|
31 } |
|
32 |
|
33 public CACmdLineException( string aMessage, Exception aInnerException ) |
|
34 : this( aMessage, aInnerException, CAPlugin.KErrCommandLineGeneral ) |
|
35 { |
|
36 } |
|
37 |
|
38 public CACmdLineException( string aMessage, Exception aInnerException, int aErrorCode ) |
|
39 : base( aMessage, aInnerException ) |
|
40 { |
|
41 iErrorCode = aErrorCode; |
|
42 } |
|
43 |
|
44 public CACmdLineException( string aMessage, int aErrorCode ) |
|
45 : base( aMessage ) |
|
46 { |
|
47 iErrorCode = aErrorCode; |
|
48 } |
|
49 #endregion |
|
50 |
|
51 #region API |
|
52 public static void CreateXmlErrorFile( Stream aStream, Exception aException ) |
|
53 { |
|
54 using ( aStream ) |
|
55 { |
|
56 } |
|
57 } |
|
58 #endregion |
|
59 |
|
60 #region Properties |
|
61 public int ErrorCode |
|
62 { |
|
63 get { return iErrorCode; } |
|
64 } |
|
65 #endregion |
|
66 |
|
67 #region Internal methods |
|
68 #endregion |
|
69 |
|
70 #region Data members |
|
71 private readonly int iErrorCode; |
|
72 #endregion |
|
73 } |
|
74 } |