#include <myexcept.h>
Collaboration diagram for Tracer:

Public Member Functions | |
| Tracer (char *) | |
| ~Tracer () | |
| void | ReName (char *) |
Static Public Member Functions | |
| void | PrintTrace () |
| void | AddTrace () |
Static Public Attributes | |
| Tracer * | last |
Private Attributes | |
| char * | entry |
| Tracer * | previous |
Friends | |
| class | Exception |
|
|
Definition at line 86 of file myexcept.h. References last.
|
|
|
Definition at line 89 of file myexcept.h. References last, and previous.
|
|
|
Definition at line 110 of file myexcept.cpp. References Exception::AddMessage(), entry, last, and previous. Referenced by Bad_alloc::Bad_alloc(), Bad_cast::Bad_cast(), Bad_typeid::Bad_typeid(), Domain_error::Domain_error(), Exception::Exception(), Invalid_argument::Invalid_argument(), Length_error::Length_error(), Logic_error::Logic_error(), Out_of_range::Out_of_range(), Overflow_error::Overflow_error(), Range_error::Range_error(), and Runtime_error::Runtime_error().
00111 {
00112 if (last)
00113 {
00114 Exception::AddMessage("Trace: ");
00115 Exception::AddMessage(last->entry);
00116 for (Tracer* et = last->previous; et; et=et->previous)
00117 {
00118 Exception::AddMessage("; ");
00119 Exception::AddMessage(et->entry);
00120 }
00121 Exception::AddMessage(".\n");
00122 }
00123 }
|
|
|
Definition at line 101 of file myexcept.cpp.
00102 {
00103 /*
00104 cout << "\n";
00105 for (Tracer* et = last; et; et=et->previous)
00106 cout << " * " << et->entry << "\n";
00107 */
00108 }
|
|
|
Definition at line 91 of file myexcept.h. References entry.
00091 { entry=e; }
|
|
|
Definition at line 65 of file myexcept.h. |
|
|
Definition at line 56 of file myexcept.h. Referenced by AddTrace(), and ReName(). |
|
|
Definition at line 217 of file myexcept.cpp. Referenced by AddTrace(), Tracer(), and ~Tracer(). |
|
|
Definition at line 57 of file myexcept.h. Referenced by AddTrace(), and ~Tracer(). |
1.3.3