source: Sophya/trunk/SophyaLib/BaseTools/pexceptions.cc@ 261

Last change on this file since 261 was 242, checked in by ansari, 26 years ago

ppersist + pexc

File size: 314 bytes
Line 
1#include "pexceptions.h"
2#include <iostream.h>
3
4using namespace PlanckDPC;
5
6void PFailHandler(void);
7
8void PFailHandler(void)
9{
10 set_new_handler(NULL);
11 cerr << "Allocation exception -- out of memory" << endl;
12 throw(AllocationError("new"));
13}
14
15void InitFailNewHandler()
16{
17 set_new_handler(PFailHandler);
18}
19
Note: See TracBrowser for help on using the repository browser.