lsst.pex.exceptions
8.0.0.0-23-g68b96ed
|
00001 // -*- lsst-c++ -*- 00002 00003 /* 00004 * LSST Data Management System 00005 * Copyright 2008, 2009, 2010 LSST Corporation. 00006 * 00007 * This product includes software developed by the 00008 * LSST Project (http://www.lsst.org/). 00009 * 00010 * This program is free software: you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation, either version 3 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 * You should have received a copy of the LSST License Statement and 00021 * the GNU General Public License along with this program. If not, 00022 * see <http://www.lsstcorp.org/LegalNotices/>. 00023 */ 00024 00025 #if !defined(LSST_RUNTIME_EXCEPTION) 00026 #define LSST_RUNTIME_EXCEPTION 1 00027 00028 #include "lsst/pex/exceptions/Exception.h" 00029 00030 namespace pexExcept = lsst::pex::exceptions; 00031 00032 namespace lsst { 00033 namespace pex { 00034 namespace exceptions { 00035 00036 LSST_EXCEPTION_TYPE(LogicError, Exception, lsst::pex::exceptions::LogicError) 00037 LSST_EXCEPTION_TYPE(DomainError, LogicError, lsst::pex::exceptions::DomainError) 00038 LSST_EXCEPTION_TYPE(InvalidParameterError, LogicError, lsst::pex::exceptions::InvalidParameterError) 00039 LSST_EXCEPTION_TYPE(LengthError, LogicError, lsst::pex::exceptions::LengthError) 00040 LSST_EXCEPTION_TYPE(OutOfRangeError, LogicError, lsst::pex::exceptions::OutOfRangeError) 00041 LSST_EXCEPTION_TYPE(RuntimeError, Exception, lsst::pex::exceptions::RuntimeError) 00042 LSST_EXCEPTION_TYPE(RangeError, RuntimeError, lsst::pex::exceptions::RangeError) 00043 LSST_EXCEPTION_TYPE(OverflowError, RuntimeError, lsst::pex::exceptions::OverflowError) 00044 LSST_EXCEPTION_TYPE(UnderflowError, RuntimeError, lsst::pex::exceptions::UnderflowError) 00045 LSST_EXCEPTION_TYPE(NotFoundError, Exception, lsst::pex::exceptions::NotFoundError) 00046 LSST_EXCEPTION_TYPE(MemoryError, RuntimeError, lsst::pex::exceptions::MemoryError) 00047 LSST_EXCEPTION_TYPE(IoError, RuntimeError, lsst::pex::exceptions::IoError) 00048 LSST_EXCEPTION_TYPE(TypeError, RuntimeError, lsst::pex::exceptions::TypeError) 00049 LSST_EXCEPTION_TYPE(TimeoutError, RuntimeError, lsst::pex::exceptions::TimeoutError) 00050 00051 } 00052 } 00053 } 00054 00055 #endif