OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Static Public Attributes | List of all members
Bad_alloc Class Reference

#include <myexcept.h>

Inheritance diagram for Bad_alloc:
BaseException

Public Member Functions

 Bad_alloc (const char *a_what=0)
 
- Public Member Functions inherited from BaseException
 BaseException (const char *a_what=0)
 

Static Public Attributes

static unsigned long Select
 
- Static Public Attributes inherited from BaseException
static unsigned long Select
 

Additional Inherited Members

- Static Public Member Functions inherited from BaseException
static void AddMessage (const char *a_what)
 
static void AddInt (int value)
 
static const char * what ()
 
- Static Protected Attributes inherited from BaseException
static char * what_error
 
static int SoFar
 
static int LastOne
 

Detailed Description

Definition at line 415 of file myexcept.h.

Constructor & Destructor Documentation

◆ Bad_alloc()

Bad_alloc::Bad_alloc ( const char *  a_what = 0)

Definition at line 462 of file myexcept.cpp.

References BaseException::AddMessage(), Tracer::AddTrace(), BaseException::Select, and Select.

462  : BaseException()
463 {
465  AddMessage("bad allocation\n"); AddMessage(a_what);
466  if (a_what) Tracer::AddTrace();
467 }
static void AddMessage(const char *a_what)
Definition: myexcept.cpp:67
static unsigned long Select
Definition: myexcept.h:418
static void AddTrace()
Definition: myexcept.cpp:110
static unsigned long Select
Definition: myexcept.h:79
BaseException(const char *a_what=0)
Definition: myexcept.cpp:49

Member Data Documentation

◆ Select

unsigned long Bad_alloc::Select
static

Definition at line 418 of file myexcept.h.

Referenced by Bad_alloc().


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