00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef TAO_USER_EXCEPTION_H
00017 #define TAO_USER_EXCEPTION_H
00018
00019 #include "ace/pre.h"
00020
00021 #include "tao/TAO_Export.h"
00022
00023 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00024 # pragma once
00025 #endif
00026
00027 #include "tao/Exception.h"
00028
00029 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00030
00031 namespace CORBA
00032 {
00033
00034
00035
00036
00037
00038
00039
00040
00041 class TAO_Export UserException : public Exception
00042 {
00043 public:
00044
00045
00046 UserException (UserException const &rhs);
00047
00048
00049 virtual ~UserException (void);
00050
00051
00052 UserException &operator= (UserException const &rhs);
00053
00054
00055 static UserException *_downcast (CORBA::Exception *exception);
00056
00057
00058 static const UserException *_downcast (CORBA::Exception const *exception);
00059
00060 virtual void _raise (void) const = 0;
00061
00062 virtual CORBA::TypeCode_ptr _tao_type (void) const;
00063
00064
00065
00066
00067 UserException (char const *repository_id, char const *local_name);
00068
00069
00070
00071 virtual ACE_CString _info (void) const;
00072
00073 protected:
00074
00075 UserException (void);
00076 };
00077
00078 }
00079
00080 TAO_END_VERSIONED_NAMESPACE_DECL
00081
00082 #if defined (__ACE_INLINE__)
00083 # include "tao/UserException.inl"
00084 #endif
00085
00086 #include "ace/post.h"
00087
00088 #endif