Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.atnf.csiro.au/computing/software/casacore/casacore-1.2.0/doc/html/Exceptions_8h_source.html
Дата изменения: Unknown Дата индексирования: Mon Feb 14 20:33:53 2011 Кодировка: Поисковые слова: с р с р с р с с р р с с |
00001 //# Exceptions.h: a module for exception handling 00002 //# Copyright (C) 1995,1999,2000,2001 00003 //# Associated Universities, Inc. Washington DC, USA. 00004 //# 00005 //# This library is free software; you can redistribute it and/or modify it 00006 //# under the terms of the GNU Library General Public License as published by 00007 //# the Free Software Foundation; either version 2 of the License, or (at your 00008 //# option) any later version. 00009 //# 00010 //# This library is distributed in the hope that it will be useful, but WITHOUT 00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00013 //# License for more details. 00014 //# 00015 //# You should have received a copy of the GNU Library General Public License 00016 //# along with this library; if not, write to the Free Software Foundation, 00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. 00018 //# 00019 //# Correspondence concerning AIPS++ should be addressed as follows: 00020 //# Internet email: aips2-request@nrao.edu. 00021 //# Postal address: AIPS++ Project Office 00022 //# National Radio Astronomy Observatory 00023 //# 520 Edgemont Road 00024 //# Charlottesville, VA 22903-2475 USA 00025 //# 00026 //# $Id: Exceptions.h 20551 2009-03-25 00:11:33Z Malte.Marquarding $ 00027 00028 #ifndef CASA_EXCEPTIONS_H 00029 #define CASA_EXCEPTIONS_H 00030 00031 00032 #include <casa/Exceptions/Error.h> 00033 00034 namespace casa { //# NAMESPACE CASA - BEGIN 00035 00036 // <module> 00037 // 00038 // <summary> 00039 // Exception handling 00040 // </summary> 00041 // 00042 // <reviewed reviewer="UNKNOWN" date="before2004/08/25" demos=""> 00043 // </reviewed> 00044 // 00045 // <synopsis> 00046 // This module provides the exception handling mechanism used in AIPS++. 00047 // It allows the user to define new exception types and to <src>throw</src>, 00048 // <src>catch</src>, and <src>rethrow</src> these exceptions. The interface 00049 // to this exception handling mechanism is very similary to the ANSI standard 00050 // exceptions. This will make it easy to switch when the time comes. 00051 // 00052 // This module supplies several <linkto file="Error.h">common exception types </linkto>. 00053 // These provide examples for creating new errors. 00054 // 00055 // At some point, this exception mechanism will probably be replaced with 00056 // compiler supported exceptions. 00057 // </synopsis> 00058 // 00059 // <example> 00060 // <em>This example shows how a more specific exception can be caught as 00061 // a more general exception:</em> 00062 // <srcblock> 00063 // #include <casa/Exceptions.h> 00064 // #include <iostream> 00065 // main() { 00066 // try { 00067 // throw(indexError<int>(5,"Dummy error")); 00068 // } catch (IndexError xx) { 00069 // cout << "caught IndexError" << endl; 00070 // } 00071 // } 00072 // </srcblock> 00073 // </example> 00074 // </module> 00075 00076 00077 } //# NAMESPACE CASA - END 00078 00079 #endif