oaDMException.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaDMException.h
00004 //
00005 // This file contains the definitions for the classes which return information
00006 // for cellview database exceptions.
00007 //
00008 // oaDMException
00009 //     This is the base class for cellview database exceptions.
00010 //
00011 // oaDMError
00012 //     This class is used to return information about cellview database
00013 // exceptions.
00014 //
00015 // oaDMPlugInError
00016 //     This oaDMError derived class is specialized to wrap an IException, such 
00017 //     as those received from the plug-ins. It represents 
00018 //     an `oacInterfaceException` which also report the information about the 
00019 //     originating Plug-In exception.
00020 //
00021 // *****************************************************************************
00022 // Except as specified in the OpenAccess terms of use of Cadence or Silicon
00023 // Integration Initiative, this material may not be copied, modified,
00024 // re-published, uploaded, executed, or distributed in any way, in any medium,
00025 // in whole or in part, without prior written permission from Cadence.
00026 //
00027 //                Copyright 2002-2005 Cadence Design Systems, Inc.
00028 //                           All Rights Reserved.
00029 //
00030 //  $Author: icftcm $
00031 //  $Revision: #1 $
00032 //  $Date: 2010/08/09 $
00033 //  $State: Exp $
00034 // *****************************************************************************
00035 // *****************************************************************************
00036 
00037 
00038 
00039 #if !defined(oaDMException_P)
00040 #define oaDMException_P
00041 
00042 
00043 
00044 // *****************************************************************************
00045 // Nested includes
00046 // *****************************************************************************
00047 #include "oaException.h"
00048 #include "oaDMTypes.h"
00049 #include "oaDMMsgs.h"
00050 
00051 
00052 
00053 // *****************************************************************************
00054 // Declare and define types in the OpenAccess namespace.
00055 // *****************************************************************************
00056 BEGIN_OA_NAMESPACE
00057 
00058 
00059 
00060 // *****************************************************************************
00061 // oaDMException
00062 // *****************************************************************************
00063 class OA_DM_DLL_API oaDMException : public oaException {
00064 public:
00065                             oaDMException(oaUInt4 msgIdIn);
00066     virtual inline          ~oaDMException();
00067 
00068 protected:
00069     virtual const oaString  &getFormatString() const;
00070 };
00071 
00072 
00073 
00074 // *****************************************************************************
00075 // oaDMError
00076 // *****************************************************************************
00077 class OA_DM_DLL_API oaDMError : public oaDMException {
00078 public:
00079                             oaDMError(oaUInt4 msgIdIn,
00080                                       ...);
00081     virtual inline          ~oaDMError();
00082 };
00083 
00084 
00085 
00086 // *****************************************************************************
00087 // oaDMPlugInError
00088 // *****************************************************************************
00089 class OA_DM_DLL_API oaDMPlugInError : public oaDMError {
00090 public:
00091                             oaDMPlugInError(oaDMMsgIds      msgIdIn,
00092                                             const oaString  &systemName,
00093                                             const oaString  &libNameStr,
00094                                             oaUInt4         plugInMsgIdIn,
00095                                             const oaString  &plugInMsgStr);
00096 
00097     oaUInt4                 getPlugInMsgId() const;
00098 
00099 private:
00100     oaUInt4                 plugInMsgId;
00101 };
00102 
00103 
00104 
00105 END_OA_NAMESPACE
00106 
00107 #endif

Return to top of page