include/algo/align/util/algo_align_util_exceptions.hpp

Go to the documentation of this file.
00001 #ifndef ALGO_ALIGN_UTIL_EXCEPTION__HPP
00002 #define ALGO_ALIGN_UTIL_EXCEPTION__HPP
00003 
00004 /* $Id: algo_align_util_exceptions.hpp 103491 2007-05-04 17:18:18Z kazimird $
00005 * ===========================================================================
00006 *
00007 *                            public DOMAIN NOTICE                          
00008 *               National Center for Biotechnology Information
00009 *                                                                          
00010 *  This software/database is a "United States Government Work" under the   
00011 *  terms of the United States Copyright Act.  It was written as part of    
00012 *  the author's official duties as a United States Government employee and 
00013 *  thus cannot be copyrighted.  This software/database is freely available 
00014 *  to the public for use. The National Library of Medicine and the U.S.    
00015 *  Government have not placed any restriction on its use or reproduction.  
00016 *                                                                          
00017 *  Although all reasonable efforts have been taken to ensure the accuracy  
00018 *  and reliability of the software and data, the NLM and the U.S.          
00019 *  Government do not and cannot warrant the performance or results that    
00020 *  may be obtained by using this software or data. The NLM and the U.S.    
00021 *  Government disclaim all warranties, express or implied, including       
00022 *  warranties of performance, merchantability or fitness for any particular
00023 *  purpose.                                                                
00024 *                                                                          
00025 *  Please cite the author in any work or product based on this material.   
00026 *
00027 * ===========================================================================
00028 *
00029 * Author:  Yuri Kapustin
00030 *
00031 * File Description:
00032 *   Aglo/align/util exceptions
00033 *
00034 */
00035 
00036 #include <corelib/ncbiexpt.hpp>
00037 
00038 
00039 BEGIN_NCBI_SCOPE
00040 
00041 
00042 class CAlgoAlignUtilException : public CException
00043 {
00044 public:
00045     enum EErrCode {
00046         eInternal,
00047         eBadParameter,
00048         eFormat
00049     };
00050     virtual const char* GetErrCodeString(void) const {
00051         switch ( GetErrCode() ) {
00052         case eInternal:
00053             return "Internal error";
00054         case eBadParameter:
00055             return "One or more parameters passed are invalid";
00056         case eFormat:
00057             return "Incorrect format";
00058         default:
00059             return CException::GetErrCodeString();
00060         }
00061     }
00062     NCBI_EXCEPTION_DEFAULT(CAlgoAlignUtilException, CException);
00063 };
00064 
00065 
00066 END_NCBI_SCOPE
00067 
00068 #endif
00069 
00070 

Generated on Sun Dec 6 21:55:31 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:20:32 2009 by modify_doxy.py rev. 173732