31#if defined(BI_MSG_LANGUAGE) && BI_MSG_LANGUAGE == 0x0411
33 static const char defError[] =
"?知I預SO";
40 if (
msg.length() == 0)
51 return (
r ==
IDYES) ? 0 : -1;
168 return new TXOwl(*
this);
213 bool status =
module && module->LoadString(resId, buf, COUNTOF(buf));
218#if BI_MSG_LANGUAGE == 0x0411
221 _stprintf(buf,
_T(
"Exception #%u (Could not load description string; <owl/except.rc> not bound?)."),
resId);
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
Derived from xmsg, TXBase is the base class for ObjectWindows and ObjectComponents exception-handling...
Describes an exception that results from running out of memory.
TXOwl is root class of the ObjectWindows exception hierarchy.
TXOutOfMemory()
Constructs a TXOutOfMemory object.
void Throw()
Throws the exception object.
static void Raise()
Construct a TXOutOfMemory exception from scratch, and throw it.
static void Raise(const tstring &msg, uint resId=0)
static tstring MakeMessage(uint resId, const tstring &infoStr, TModule *module=&GetGlobalModule())
static tstring ResourceIdToString(bool *found, uint resId, TModule *module=&GetGlobalModule())
Static member function used to convert a resource id to a 'string'.
virtual ~TXOwl()
Destroys a TXOwl object.
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 identifi...
void Throw()
Throws the exception object.
TXNotSupportedCall * Clone()
virtual int Unhandled(TModule *appModule, uint promptResId)
Per-exception class unhandled-handler, will default to the per-module unhandled-handler.
Definition of class TModule.
Object Windows Library (OWLNext Core)
int HandleGlobalException(owl::TXBase &x, LPCTSTR caption, LPCTSTR canResume=nullptr)
ObjectWindows exception class & function definitions.
Base window class TWindow definition, including HWND encapsulation.