FDO .NET API Reference | Feature Data Objects |
00001 /* 00002 * Copyright (C) 2004-2006 Autodesk, Inc. 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of version 2.1 of the GNU Lesser 00006 * General Public License as published by the Free Software Foundation. 00007 * 00008 * This library is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * Lesser General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public 00014 * License along with this library; if not, write to the Free Software 00015 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00016 * 00017 */ 00018 00019 #pragma once 00020 00021 class FdoException; 00022 00023 BEGIN_NAMESPACE_OSGEO_COMMON 00024 00025 /// \ingroup (OSGeoFDOCommon) 00026 /// \brief 00027 /// Exception is a root class for the exception type thrown from classes. It derives from a language 00028 /// level exception class that is environment specific. 00029 [System::SerializableAttribute] 00030 public __gc class Exception : public System::Exception 00031 { 00032 public: 00033 /// \brief 00034 /// Constructs an Exception managed object based on an unmanaged instance of the object 00035 /// 00036 /// \param ex 00037 /// Input A Pointer to the unmanaged object. 00038 /// 00039 static NAMESPACE_OSGEO_COMMON::Exception* Create(System::IntPtr ex); 00040 00041 public: 00042 /// \brief 00043 /// Constructs a new empty Exception object 00044 /// 00045 NAMESPACE_OSGEO_COMMON::Exception() : System::Exception() 00046 { 00047 00048 } 00049 00050 /// \brief 00051 /// Creates an instance of an Exception using the specified arguments. 00052 /// 00053 /// \param msg 00054 /// Input the error message 00055 /// 00056 NAMESPACE_OSGEO_COMMON::Exception(String* msg) : System::Exception(msg) 00057 { 00058 00059 } 00060 00061 /// \brief 00062 /// Returns an instance of a Exception using the specified arguments. 00063 /// 00064 /// \param msg 00065 /// Input the error message 00066 /// 00067 /// \param cause 00068 /// Input the cause of the error 00069 /// 00070 NAMESPACE_OSGEO_COMMON::Exception(System::String* msg, System::Exception* cause) : System::Exception(msg, cause) 00071 { 00072 00073 } 00074 00075 /// \cond DOXYGEN-IGNORE 00076 protected: 00077 NAMESPACE_OSGEO_COMMON::Exception(System::Runtime::Serialization::SerializationInfo* info, System::Runtime::Serialization::StreamingContext context) : System::Exception(info, context) 00078 { 00079 00080 } 00081 /// \endcond 00082 }; 00083 END_NAMESPACE_OSGEO_COMMON 00084 00085
Comments or suggestions? Send us feedback. |