OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TXWindow Class Reference

A nested class, TXWindow describes an exception that results from trying to create an invalid window. More...

#include <owl/window.h>

Inheritance diagram for owl::TXWindow:
owl::TXOwl owl::TXBase

Public Member Functions

 TXWindow (TWindow *win=nullptr, uint resourceId=IDS_INVALIDWINDOW)
 Constructs a TXWindow object with a default resource ID of IDS_INVALIDWINDOW.
 
 TXWindow (const TXWindow &src)
 Copy the exception object.
 
int Unhandled (TModule *app, uint promptResId)
 Unhandled exception.
 
TXWindowClone ()
 Clone the exception object for safe-throwing.
 
void Throw ()
 Throws the exception object.
 
TWindowGetWindow () const
 
- Public Member Functions inherited from owl::TXOwl
 TXOwl (const tstring &msg, uint resId=0)
 An OWL exception with a given message for displaying and an unsigned Id that can be used for identification or loading a string.
 
 TXOwl (uint resId, TModule *module=&GetGlobalModule())
 An OWL exception with a given unsigned Id that can is used for loading a message string & identification.
 
virtual ~TXOwl ()
 Destroys a TXOwl object.
 
uint GetErrorCode () const
 Returns the resource ID.
 
- Public Member Functions inherited from owl::TXBase
 TXBase (const tstring &msg)
 Calls the xmsg class's constructor that takes a string parameter and initializes xmsg with the value of the string parameter.
 
 TXBase (const TXBase &src)
 Creates a copy of the TXBase object passed in the TXBase parameter.
 
virtual ~TXBase ()
 
const charwhat () const noexcept
 
TXBase &_RTLENTRY operator= (const TXBase &src)
 
tstring why () const
 

Static Public Member Functions

static void Raise (TWindow *win=nullptr, uint resourceId=IDS_INVALIDWINDOW)
 Creates the TXWindow exception and throws it.
 
- Static Public Member Functions inherited from owl::TXOwl
static tstring ResourceIdToString (bool *found, uint resId, TModule *module=&GetGlobalModule())
 Static member function used to convert a resource id to a 'string'.
 
static tstring MakeMessage (uint resId, const tstring &infoStr, TModule *module=&GetGlobalModule())
 
static tstring MakeMessage (uint resId, LPCTSTR infoStr, TModule *module=&GetGlobalModule())
 Extension to string loader adds the feature of sprintf'ing an additional information string into the resource message string.
 
static tstring MakeMessage (uint resId, uint infoNum, TModule *module=&GetGlobalModule())
 This extension to the string loader adds the feature of sprintf'ing an additional information string into the resource message string.
 
static void Raise (const tstring &msg, uint resId=0)
 
static void Raise (uint resId, TModule *module=&GetGlobalModule())
 
- Static Public Member Functions inherited from owl::TXBase
static void Raise (const tstring &msg)
 Constructs a TXBase exception from scratch, and throws it.
 

Additional Inherited Members

- Public Attributes inherited from owl::TXOwl
uint ResId
 Resource ID for a TXOwl object.
 
- Protected Attributes inherited from owl::TXBase
std::string str
 

Detailed Description

A nested class, TXWindow describes an exception that results from trying to create an invalid window.

Definition at line 1647 of file window.h.

Constructor & Destructor Documentation

◆ TXWindow() [1/2]

owl::TXWindow::TXWindow ( TWindow * win = nullptr,
uint resourceId = IDS_INVALIDWINDOW )

Constructs a TXWindow object with a default resource ID of IDS_INVALIDWINDOW.

Definition at line 4557 of file window.cpp.

◆ TXWindow() [2/2]

owl::TXWindow::TXWindow ( const TXWindow & src)

Copy the exception object.

Definition at line 4567 of file window.cpp.

Member Function Documentation

◆ Clone()

TXWindow * owl::TXWindow::Clone ( )
virtual

Clone the exception object for safe-throwing.

Reimplemented from owl::TXOwl.

Definition at line 4592 of file window.cpp.

References TXWindow().

◆ GetWindow()

TWindow * owl::TXWindow::GetWindow ( ) const

Definition at line 4621 of file window.cpp.

◆ Raise()

void owl::TXWindow::Raise ( TWindow * win = nullptr,
uint resourceId = IDS_INVALIDWINDOW )
static

Creates the TXWindow exception and throws it.

Definition at line 4612 of file window.cpp.

References TXWindow().

◆ Throw()

void owl::TXWindow::Throw ( )
virtual

Throws the exception object.

Throw() must be implemented in any class derived from TXOwl.

Reimplemented from owl::TXOwl.

Definition at line 4603 of file window.cpp.

◆ Unhandled()

int owl::TXWindow::Unhandled ( TModule * app,
uint promptResId )
virtual

Unhandled exception.

Called if an exception caught in the window's message loop has not been handled. Unhandled() deletes the window. This type of exception can occur if a window cannot be created.

Reimplemented from owl::TXOwl.

Definition at line 4582 of file window.cpp.

References owl::TXOwl::Unhandled().


The documentation for this class was generated from the following files: