OWLNext
7.0
Borland's Object Windows Library for the modern age
Toggle main menu visibility
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
21
namespace
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
//
41
class
_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
owl::TXBase::TXBase
TXBase(const tstring &msg)
Calls the xmsg class's constructor that takes a string parameter and initializes xmsg with the value ...
Definition
exbase.cpp:121
owl::TXBase::what
const char * what() const noexcept
Definition
exbase.cpp:155
owl::TXBase::Clone
virtual TXBase * Clone()
Makes a copy of the exception object.
Definition
exbase.cpp:136
owl::TXBase::why
tstring why() const
Definition
exbase.cpp:169
owl::TXBase::Raise
static void Raise(const tstring &msg)
Constructs a TXBase exception from scratch, and throws it.
Definition
exbase.cpp:150
owl::TXBase::Throw
virtual void Throw()
Throws the exception object.
Definition
exbase.cpp:142
owl::TXBase::str
std::string str
Definition
exbase.h:59
owl::TXBase::operator=
TXBase &_RTLENTRY operator=(const TXBase &src)
Definition
exbase.cpp:160
_RTLENTRY
#define _RTLENTRY
Definition
gnuc.h:64
owl
Object Windows Library (OWLNext Core).
Definition
animctrl.h:22
owl::tstring
std::string tstring
Definition
defs.h:79
defs.h
General definitions used by all ObjectWindows programs.
defs.h
_OWLCLASS
#define _OWLCLASS
Definition
defs.h:338
except.h
posclass.h
preclass.h
include
owl
exbase.h
Generated by
1.18.0