searchengine/util/tsrc/itk/inc/private/testexc.h
changeset 0 671dee74050a
equal deleted inserted replaced
-1:000000000000 0:671dee74050a
       
     1 /*
       
     2 * Copyright (c) 2010 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 #ifndef ITK_TESTEXC_H_
       
    19 #define ITK_TESTEXC_H_
       
    20 
       
    21 #include <exception>
       
    22 
       
    23 #include "testevent.h"
       
    24 
       
    25 namespace Itk
       
    26 {
       
    27 
       
    28     /**
       
    29      * Exception class to controll the execution of test case
       
    30      * (hierarchies), namely to fall back to the closest Context on
       
    31      * failed assertion. In a sense, used for controll flow -
       
    32      * horribile dictu!
       
    33      */
       
    34     class TestExc : public std::exception
       
    35     {
       
    36     private:
       
    37         //
       
    38         // private members
       
    39         //
       
    40 
       
    41     public:
       
    42         //
       
    43         // public operators
       
    44         //
       
    45 
       
    46 
       
    47         virtual const char * what() const throw();
       
    48     };
       
    49 }
       
    50 
       
    51 #endif // ITK_TESTEXC_H_