blob: 80b1c85ee1afa70c723026aec5586f71f8248608 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
// -*- C++ -*-
//=============================================================================
/**
* @file UserException.h
*
* $Id$
*
* CORBA::UserException class header.
*
* @author DOC Group at Vanderbilt U, Wash U, and UCI
* @author Ossama Othman <ossama@dre.vanderbilt.edu>
*/
//=============================================================================
#ifndef TAO_USER_EXCEPTION_H
#define TAO_USER_EXCEPTION_H
#include /**/ "ace/pre.h"
#include "tao/Exception.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
namespace CORBA
{
/**
* @class UserException
*
* @brief Application- or OMG- defined CORBA exception sub-class.
*
* User exceptions can be defined in application OMG IDL or by the
* OMG itself for IDL interfaces and services it defines.
*/
class TAO_Export UserException : public Exception
{
public:
/// Copy constructor.
UserException (UserException const & rhs);
/// Destructor.
~UserException (void);
/// Assignment operator.
UserException & operator= (UserException const & rhs);
/// The narrow operation.
static UserException * _downcast (CORBA::Exception * exception);
/// The const version of narrow operation
static const UserException * _downcast (
CORBA::Exception const * exception);
virtual void _raise (void) const = 0;
// = TAO specific extension.
/// Constructor from a repository id.
UserException (char const * repository_id,
char const * local_name);
virtual int _is_a (char const * interface_id) const;
// Used for narrowing
/// Returns a string containing information about the exception. This
/// function is not CORBA compliant.
virtual ACE_CString _info (void) const;
//protected:
/// Default constructor.
UserException (void);
};
}
#if defined (__ACE_INLINE__)
# include "tao/UserException.inl"
#endif /* __ACE_INLINE__ */
#include /**/"ace/post.h"
#endif /* TAO_USER_EXCEPTION_H */
|