OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
exbase.h
Go to the documentation of this file.
1//----------------------------------------------------------------------------
2// Borland WinSys Library
3// Copyright (c) 1994, 1996 by Borland International, All Rights Reserved
4//
5/// \file
6/// Base exception support for framework exceptions
7//----------------------------------------------------------------------------
8
9#if !defined(OWL_EXBASE_H)
10#define OWL_EXBASE_H
11#define WINSYS_EXBASE_H //this file replaces old <winsys/exbase.h>
12
13#include <owl/private/defs.h>
14#if defined(BI_HAS_PRAGMA_ONCE)
15# pragma once
16#endif
17
18#include <owl/defs.h>
19#include <owl/private/except.h>
20
21namespace owl {
22
23#include <owl/preclass.h>
24
25//----------------------------------------------------------------------------
26/// \addtogroup except
27/// @{
28
29//
30/// Derived from xmsg, TXBase is the base class for ObjectWindows and
31/// ObjectComponents exception-handling classes. The ObjectWindows classes that
32/// handle specific kinds of exceptions, such as out-of-memory or invalid window
33/// exceptions, are derived from TXOwl, which is in turn derived from TXBase. The
34/// ObjectComponents classes TXOle and TXAuto are derived directly from TXBase.
35///
36/// TXBase contains the function Throw(), which is overridden in all
37/// derived classes, as well as two constructors.
38///
39/// \note The function Clone() is deprecated, as it was needed only in 16-bit Windows
40//
41class _OWLCLASS TXBase : public std::exception {
42 public:
43 TXBase(const tstring& msg);
44 TXBase(const TXBase& src);
45 virtual ~TXBase();
46
47 virtual TXBase* Clone();
48 virtual void Throw();
49
50 static void Raise(const tstring& msg);
51
52 public:
53 const char* what() const noexcept;
54 TXBase& _RTLENTRY operator=(const TXBase &src);
55
56 tstring why() const;
57
58 protected:
59 std::string str;
60};
61
62/// @}
63
64#include <owl/posclass.h>
65
66} // OWL namespace
67
68
69#endif // OWL_EXBASE_H
Derived from xmsg, TXBase is the base class for ObjectWindows and ObjectComponents exception-handling...
Definition exbase.h:41
std::string str
Definition exbase.h:59
#define _RTLENTRY
Definition gnuc.h:64
Object Windows Library (OWLNext Core)
Definition animctrl.h:22
std::string tstring
Definition defs.h:79
General definitions used by all ObjectWindows programs.
#define _OWLCLASS
Definition defs.h:338