📄 splign_app_exception.hpp
字号:
/* * =========================================================================== * PRODUCTION $Log: splign_app_exception.hpp,v $ * PRODUCTION Revision 1000.2 2004/04/12 17:48:53 gouriano * PRODUCTION PRODUCTION: UPGRADED [CATCHUP_003] Dev-tree R1.3 * PRODUCTION * =========================================================================== */#ifndef ALGO_ALIGN_SPLIGN_SPLIGNAPP_EXCEPTION__HPP#define ALGO_ALIGN_SPLIGN_SPLIGNAPP_EXCEPTION__HPP/* $Id: splign_app_exception.hpp,v 1000.2 2004/04/12 17:48:53 gouriano Exp $* ===========================================================================** public DOMAIN NOTICE * National Center for Biotechnology Information* * This software/database is a "United States Government Work" under the * terms of the United States Copyright Act. It was written as part of * the author's official duties as a United States Government employee and * thus cannot be copyrighted. This software/database is freely available * to the public for use. The National Library of Medicine and the U.S. * Government have not placed any restriction on its use or reproduction. * * Although all reasonable efforts have been taken to ensure the accuracy * and reliability of the software and data, the NLM and the U.S. * Government do not and cannot warrant the performance or results that * may be obtained by using this software or data. The NLM and the U.S. * Government disclaim all warranties, express or implied, including * warranties of performance, merchantability or fitness for any particular* purpose. * * Please cite the author in any work or product based on this material. ** ===========================================================================** Author: Yuri Kapustin** File Description:* CSplignApp exceptions**/#include <corelib/ncbiexpt.hpp>BEGIN_NCBI_SCOPEclass CSplignAppException : public CException{public: enum EErrCode { eInternal, eBadParameter, eCannotOpenFile, eCannotReadFile, eErrorReadingIndexFile, eBadData, eGeneral }; virtual const char* GetErrCodeString(void) const { switch ( GetErrCode() ) { case eInternal: return "Internal error"; case eBadParameter: return "One or more parameters are invalid"; case eCannotOpenFile: return "Unable to open file"; case eCannotReadFile: return "Unable to read file"; case eErrorReadingIndexFile: return "Error encountered while reading index file"; case eBadData: return "Error in input data"; case eGeneral: return "General exception"; default: return CException::GetErrCodeString(); } } NCBI_EXCEPTION_DEFAULT(CSplignAppException, CException);};// CSplign exceptions//class CSplignException : public CException{public: enum EErrCode { eInternal, eBadParameter, eNotInitialized }; virtual const char* GetErrCodeString(void) const { switch ( GetErrCode() ) { case eInternal: return "Internal error"; case eBadParameter: return "One or more parameters passed are invalid"; case eNotInitialized: return "Splign object not properly initialized"; default: return CException::GetErrCodeString(); } } NCBI_EXCEPTION_DEFAULT(CSplignException, CException);};// HitFilter exceptions - will be moved to h\the hit filtering library//class CHitFilterException: public CException{public: enum EErrCode { eInternal }; virtual const char* GetErrCodeString(void) const { switch ( GetErrCode() ) { case eInternal: return "Internal error"; default: return CException::GetErrCodeString(); } } NCBI_EXCEPTION_DEFAULT(CHitFilterException,CException);};class CHitException : public CHitFilterException{public: enum EErrCode { eFormat }; virtual const char* GetErrCodeString(void) const { switch ( GetErrCode() ) { case eFormat: return "Input line format error"; default: return CException::GetErrCodeString(); } } NCBI_EXCEPTION_DEFAULT(CHitException, CHitFilterException);};class CHitAccessorException : public CHitFilterException{public: enum EErrCode { eInputStream, eHitException }; virtual const char* GetErrCodeString(void) const { switch ( GetErrCode() ) { case eInputStream: return "Input stream unavailable"; case eHitException: return "Hit level exception"; default: return CException::GetErrCodeString(); } } NCBI_EXCEPTION_DEFAULT(CHitAccessorException, CHitFilterException);};END_NCBI_SCOPE/* * =========================================================================== * $Log: splign_app_exception.hpp,v $ * Revision 1000.2 2004/04/12 17:48:53 gouriano * PRODUCTION: UPGRADED [CATCHUP_003] Dev-tree R1.3 * * Revision 1.3 2004/03/01 20:07:26 kapustin * Add eBadData type * * Revision 1.2 2003/11/05 20:25:17 kapustin * Update exception code list for splign app exception * * Revision 1.1 2003/10/30 19:37:20 kapustin * Initial toolkit revision * * =========================================================================== */#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -