alfwidgetutils/src/alfvisualexception.cpp
branchRCL_3
changeset 26 0e9bb658ef58
parent 0 e83bab7cf002
equal deleted inserted replaced
25:4ea6f81c838a 26:0e9bb658ef58
       
     1 /*
       
     2 * Copyright (c) 2007 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:  The implementation for presentation elements.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include <alf/alfvisualexception.h>
       
    21 #include "alfexceptionstrings.h"
       
    22 
       
    23 using namespace osncore;
       
    24 
       
    25 
       
    26 
       
    27 // ======== MEMBER FUNCTIONS ========
       
    28 
       
    29 // ---------------------------------------------------------------------------
       
    30 // Constructor
       
    31 // ---------------------------------------------------------------------------
       
    32 //
       
    33 OSN_EXPORT AlfVisualException::AlfVisualException( int aErrorCode ) throw() :
       
    34         AlfException( aErrorCode )
       
    35     {
       
    36     }
       
    37 
       
    38 // ---------------------------------------------------------------------------
       
    39 // Constructor
       
    40 // ---------------------------------------------------------------------------
       
    41 //
       
    42 OSN_EXPORT AlfVisualException::AlfVisualException(
       
    43     int aErrorCode, const char* aInfo, const char* aFileAndLine ) throw() :
       
    44         AlfException( aErrorCode, aInfo, aFileAndLine )
       
    45     {
       
    46     }
       
    47 
       
    48 // ---------------------------------------------------------------------------
       
    49 // Destructor
       
    50 // ---------------------------------------------------------------------------
       
    51 //
       
    52 OSN_EXPORT AlfVisualException::~AlfVisualException() throw()
       
    53     {
       
    54 // nothing to do!
       
    55     }
       
    56 
       
    57 // ---------------------------------------------------------------------------
       
    58 // Returns the error information in c-string style.
       
    59 // ---------------------------------------------------------------------------
       
    60 //
       
    61 OSN_EXPORT const char* AlfVisualException::what() const throw()
       
    62     {
       
    63     switch ( errorCode() )
       
    64         {
       
    65         case EInvalidVisual:
       
    66             return KErrorInvalidVisual;
       
    67         case EInvalidVisualValue:
       
    68             return KErrorInvalidVisualValue;
       
    69         default:
       
    70             return KErrorUndefinedException;
       
    71         }
       
    72     }
       
    73 
       
    74 // End of File