crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianStackLib/Plugins/Accurate/Prologue/ArmPrologueExceptions.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.Collections.Generic;
       
    20 using System.Text;
       
    21 
       
    22 namespace SymbianStackAlgorithmAccurate.Prologue
       
    23 {
       
    24     internal class APESymbolNotFound : Exception
       
    25     {
       
    26         #region Constructors
       
    27         public APESymbolNotFound( uint aAddress )
       
    28             : this( aAddress, string.Empty )
       
    29         {
       
    30         }
       
    31 
       
    32         public APESymbolNotFound( uint aAddress, string aMessage )
       
    33             : base( aMessage )
       
    34         {
       
    35             iAddress = aAddress;
       
    36         }
       
    37         #endregion
       
    38 
       
    39         #region Properties
       
    40         public uint Address
       
    41         {
       
    42             get { return iAddress; }
       
    43         }
       
    44         #endregion
       
    45 
       
    46         #region From System.Object
       
    47         public override string ToString()
       
    48         {
       
    49             StringBuilder ret = new StringBuilder();
       
    50             ret.AppendFormat( "{0} [0x{1:x8}]", base.Message, iAddress );
       
    51             return ret.ToString();
       
    52         }
       
    53         #endregion
       
    54 
       
    55         #region Data members
       
    56         private readonly uint iAddress;
       
    57         #endregion
       
    58     }
       
    59 
       
    60     internal class APESymbolNotFoundCodeSegmentUnavailable : APESymbolNotFound
       
    61     {
       
    62         #region Constructors
       
    63         public APESymbolNotFoundCodeSegmentUnavailable( uint aAddress )
       
    64             : base( aAddress )
       
    65         {
       
    66         }
       
    67         #endregion
       
    68 
       
    69         #region From System.Object
       
    70         public override string ToString()
       
    71         {
       
    72             StringBuilder ret = new StringBuilder();
       
    73             ret.AppendFormat( "No code segment exists that describes the specified symbol address [0x{0:x8}]", base.Address );
       
    74             return ret.ToString();
       
    75         }
       
    76         #endregion
       
    77     }
       
    78 }