crashanalysercmd/UI/CrashServer/Engine/Exceptions/CACmdLineException.cs
changeset 0 818e61de6cd1
equal deleted inserted replaced
-1:000000000000 0:818e61de6cd1
       
     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 
       
    18 using System;
       
    19 using System.Text;
       
    20 using System.IO;
       
    21 using System.Collections.Generic;
       
    22 
       
    23 namespace CrashAnalyserServerExe.Engine
       
    24 {
       
    25 	internal class CACmdLineException : Exception
       
    26     {
       
    27         #region Constants
       
    28         public const int KErrNone = 0;
       
    29         public const int KErrGeneral = -1;
       
    30         public const int KErrSinkNotAvailable = -2;
       
    31         public const int KErrCommandLineError = -3;
       
    32         #endregion
       
    33 
       
    34         #region Constructors
       
    35         public CACmdLineException( string aMessage )
       
    36             : this( aMessage, KErrGeneral )
       
    37 		{
       
    38 		}
       
    39        
       
    40         public CACmdLineException( string aMessage, Exception aInnerException )
       
    41             : this( aMessage, aInnerException, KErrGeneral )
       
    42         {
       
    43         }
       
    44 
       
    45         public CACmdLineException( string aMessage, Exception aInnerException, int aErrorCode )
       
    46             : base( aMessage, aInnerException )
       
    47         {
       
    48             iErrorCode = aErrorCode;
       
    49         }
       
    50        
       
    51         public CACmdLineException( string aMessage, int aErrorCode )
       
    52             : base( aMessage )
       
    53 		{
       
    54             iErrorCode = aErrorCode;
       
    55 		}
       
    56         #endregion
       
    57 
       
    58 		#region API
       
    59         #endregion
       
    60 
       
    61 		#region Properties
       
    62         public int ErrorCode
       
    63         {
       
    64             get { return iErrorCode; }
       
    65         }
       
    66         #endregion
       
    67 
       
    68         #region Internal methods
       
    69         #endregion
       
    70 
       
    71         #region Data members
       
    72         private readonly int iErrorCode;
       
    73         #endregion
       
    74 	}
       
    75 }