summaryrefslogtreecommitdiff
path: root/TAO/tao/Exception.h
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-07-24 16:16:54 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-07-24 16:16:54 +0000
commita81eebf8f8d88d2c64a0a625ba6e3069d471a47e (patch)
treedd3531a666769c9a29f6bc1024172c4773159fd1 /TAO/tao/Exception.h
parentdf5f3b2616720c7ff2224e671c482eaa7049889d (diff)
downloadATCD-a81eebf8f8d88d2c64a0a625ba6e3069d471a47e.tar.gz
ChangeLogTag: Thu Jul 24 11:09:52 2003 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'TAO/tao/Exception.h')
-rw-r--r--TAO/tao/Exception.h68
1 files changed, 29 insertions, 39 deletions
diff --git a/TAO/tao/Exception.h b/TAO/tao/Exception.h
index 0049abe77b8..22e7df6bda9 100644
--- a/TAO/tao/Exception.h
+++ b/TAO/tao/Exception.h
@@ -16,7 +16,7 @@
#ifndef TAO_EXCEPTION_H
#define TAO_EXCEPTION_H
-#include "ace/pre.h"
+#include /**/ "ace/pre.h"
#include "tao/corbafwd.h"
@@ -60,6 +60,12 @@ namespace CORBA
{
public:
+ /// Copy constructor.
+ Exception (const Exception &src);
+
+ /// Assignment operator.
+ Exception &operator = (const Exception &src);
+
/// Destructor.
virtual ~Exception (void);
@@ -69,13 +75,13 @@ namespace CORBA
// = The static narrow operation.
static Exception *_downcast (Exception *x);
+ // = These are TAO-specific extensions.
+
/// Return the repository ID of the Exception.
- virtual const char *_rep_id (void) const;
+ const char *_rep_id (void) const;
/// Return the name of the Exception.
- virtual const char *_name (void) const;
-
- // = These are TAO-specific extensions.
+ const char *_name (void) const;
/// Will be overridden in the concrete derived classes.
virtual CORBA::TypeCode_ptr _type (void) const;
@@ -133,12 +139,6 @@ namespace CORBA
/// Default constructor is protected.
Exception (void);
- /// Copy constructor is protected.
- Exception (const Exception &src);
-
- /// Assignment operator is protected.
- Exception &operator = (const Exception &src);
-
private:
/// Storage of our repository id and local name.
char *id_;
@@ -155,20 +155,23 @@ namespace CORBA
{
public:
+ /// Copy constructor.
+ UserException (const UserException &src);
+
/// Destructor.
~UserException (void);
+ /// Assignment operator.
+ UserException &operator= (const UserException &src);
+
/// The narrow operation.
static UserException *_downcast (CORBA::Exception *exception);
- /// The const version of narrow operation
- static const UserException *_downcast(const CORBA::Exception *exception);
-
// = TAO specific extension.
/// Constructor from a repository id.
UserException (const char *repository_id,
- const char *local_name);
+ const char *local_name);
virtual int _is_a (const char *interface_id) const;
@@ -178,16 +181,9 @@ namespace CORBA
/// function is not CORBA compliant.
virtual ACE_CString _info (void) const;
- protected:
-
+ //protected:
/// Default constructor.
UserException (void);
-
- /// Copy constructor.
- UserException (const UserException &src);
-
- /// Assignment operator.
- UserException &operator= (const UserException &src);
};
/**
@@ -202,9 +198,18 @@ namespace CORBA
{
public:
+ /// Default constructtor
+ SystemException (void);
+
+ /// Copy constructor.
+ SystemException (const SystemException &src);
+
/// Destructor.
~SystemException (void);
+ /// Assignment operator.
+ SystemException &operator= (const SystemException &src);
+
/// Get the minor status.
CORBA::ULong minor (void) const;
@@ -220,9 +225,6 @@ namespace CORBA
/// Narrow to a SystemException.
static SystemException *_downcast (CORBA::Exception *exception);
- /// The const version of narrow operation to a SystemException
- static const SystemException *_downcast(const CORBA::Exception *exception);
-
// = TAO-specific extension.
/// Helper for the _downcast operation.
@@ -250,18 +252,6 @@ namespace CORBA
static CORBA::ULong _tao_errno (int errno_value);
protected:
- /// Default constructtor
- SystemException (void);
-
- /// Copy constructor.
- SystemException (const SystemException &src);
-
- /// Assignment operator.
- SystemException &operator= (const SystemException &src);
-
- /// Constructor using a repository id.
- SystemException (CORBA::ULong code,
- CORBA::CompletionStatus completed);
/// Constructor using a repository id.
SystemException (const char *repository_id,
@@ -432,6 +422,6 @@ public:
# include "tao/Exception.i"
#endif /* __ACE_INLINE__ */
-#include "ace/post.h"
+#include /**/ "ace/post.h"
#endif /* TAO_EXCEPTION_H */