📄 seqalign_exception.hpp
字号:
/* * =========================================================================== * PRODUCTION $Log: seqalign_exception.hpp,v $ * PRODUCTION Revision 1000.2 2004/06/01 19:30:43 gouriano * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.6 * PRODUCTION * =========================================================================== *//* $Id: seqalign_exception.hpp,v 1000.2 2004/06/01 19:30:43 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: Philip Johnson * * File Description: CSeqalignException class * */#ifndef OBJECTS_SEQALIGN_SEQALIGN_EXCEPTION_HPP#define OBJECTS_SEQALIGN_SEQALIGN_EXCEPTION_HPP#include <corelib/ncbiexpt.hpp>BEGIN_NCBI_SCOPEBEGIN_SCOPE(objects) // namespace ncbi::objects::class NCBI_SEQALIGN_EXPORT CSeqalignException : EXCEPTION_VIRTUAL_BASE public CException{public: enum EErrCode { eUnsupported, eInvalidAlignment, eInvalidInputAlignment, eInvalidRowNumber, eOutOfRange, eInvalidInputData }; virtual const char* GetErrCodeString(void) const { switch (GetErrCode()) { case eUnsupported: return "eUnsupported"; case eInvalidAlignment: return "eInvalidAlignment"; case eInvalidInputAlignment: return "eInvalidInputAlignment"; case eInvalidRowNumber: return "eInvalidRowNumber"; case eOutOfRange: return "eOutOfRange"; case eInvalidInputData: return "eInvalidInputData"; default: return CException::GetErrCodeString(); } } NCBI_EXCEPTION_DEFAULT(CSeqalignException, CException);};END_SCOPE(objects)END_NCBI_SCOPE/** ===========================================================================** $Log: seqalign_exception.hpp,v $* Revision 1000.2 2004/06/01 19:30:43 gouriano* PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.6** Revision 1.6 2004/04/27 19:20:23 johnson* {BEGIN,END}_objects_SCOPE not defined by includes; replaced with* {BEGIN,END}_SCOPE(objects)** Revision 1.5 2003/11/04 14:45:54 todorov* +eInvalidInputData** Revision 1.4 2003/09/16 15:31:59 todorov* Added validation methods. Added seq range methods** Revision 1.3 2003/08/26 20:28:38 johnson* added 'SwapRows' method** Revision 1.2 2003/08/19 21:09:39 todorov* +eInvalidInputAlignment** Revision 1.1 2003/08/13 18:11:03 johnson* initial revision; created so CSeq_align::Reverse can throw if asked to* reverse an (as yet) unsupported segment type*** ===========================================================================*/#endif // OBJECTS_SEQALIGN_SEQALIGN_EXCEPTION_HPP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -