FDO API Reference Feature Data Objects

ClientServiceException.h

Go to the documentation of this file.
00001 #ifndef _FDOCLIENTSERVICEEXCEPTION_H_
00002 #define _FDOCLIENTSERVICEEXCEPTION_H_
00003 /***************************************************************************
00004 
00005 //
00006 // Copyright (C) 2004-2006  Autodesk, Inc.
00007 // 
00008 // This library is free software; you can redistribute it and/or
00009 // modify it under the terms of version 2.1 of the GNU Lesser
00010 // General Public License as published by the Free Software Foundation.
00011 // 
00012 // This library is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015 // Lesser General Public License for more details.
00016 // 
00017 // You should have received a copy of the GNU Lesser General Public
00018 // License along with this library; if not, write to the Free Software
00019 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00020 //
00021 
00022  *
00023  ***************************************************************************/
00024 #ifdef _WIN32
00025 #pragma once
00026 #endif
00027 
00028 // Include definitions
00029 #include <FdoStd.h>
00030 #include <Fdo/ClientServices/ClientServices.h>
00031 
00032 /// \brief
00033 ///  
00034 /// An Exception class through which ClientServices errors are transmitted back to
00035 /// calling applications. Derives from base FdoException class. 
00036 class FdoClientServiceException : public FdoException
00037 {
00038 protected:
00039 /// \cond DOXYGEN-IGNORE
00040     /// Constructs a default instance of a FdoClientServiceException.
00041     FdoClientServiceException(void);
00042 
00043     /// Constructs an instance of a FdoClientServiceException using the exception
00044     /// message.
00045     FdoClientServiceException(const wchar_t* message);
00046 
00047     virtual void Dispose();
00048 /// \endcond
00049 
00050 public:
00051 
00052     /// \brief
00053     /// Default destructor for FdoClientServiceException.
00054     /// 
00055     /// \param void 
00056     /// Void.
00057     /// 
00058     /// \return
00059     /// Returns nothing.
00060     /// 
00061     FDO_API virtual ~FdoClientServiceException(void);
00062 
00063     /// \brief
00064     /// Creates a default instance of a FdoClientServiceException. 
00065     /// 
00066     /// \return
00067     /// Returns an default FdoClientServicesException object.
00068     /// 
00069     FDO_API static FdoClientServiceException* Create();
00070 
00071     /// \brief
00072     /// Creates an instance of a FdoClientServiceException using the exception message. 
00073     /// 
00074     /// \param message 
00075     /// The Exception message.
00076     /// 
00077     /// \return
00078     /// Returns an FdoClientServicesException object containing the specified error mesage.
00079     /// 
00080     FDO_API static FdoClientServiceException* Create(const wchar_t* message);
00081 
00082     /// \brief
00083     /// Gets the message associated with this exception. If no message and
00084     /// is associated with this exception then a null reference is
00085     /// returned.
00086     /// 
00087     /// \return
00088     /// Returns the error message.
00089     /// 
00090     ///  
00091     FDO_API virtual const wchar_t* ToString();
00092 };
00093 #endif
00094 
00095 

Comments or suggestions? Send us feedback.