OOFILE  1.9
oofexcep.cpp
Go to the documentation of this file.
1 // COPYRIGHT 1997 A.D. Software, All rights reserved
2 
3 // Exceptions objects for OOFILE database
4 
5 #include "oofpch_c.h" // for precompilation of core files
6 
7 #ifndef H_OOFEXCEP
8  #include "oofexcep.h"
9 #endif
10 #ifndef H_OOFFILES
11  #include "ooffiles.h"
12 #endif
13 #ifndef H_OOF3
14  #include "oof3.h"
15 #endif
16 
17 #ifdef OOF_MEM_DEBUG_LAST_INCLUDE
18  #include OOF_MEM_DEBUG_LAST_INCLUDE
19 #endif
20 
21 #ifndef OOF_NO_STDLIB
22  #ifndef std
23  using namespace std;
24  #endif
25 #endif
26 
27 
28 // -------------------------------------------------------
29 // o o f E _ B a s e
30 // -------------------------------------------------------
31 ostream&
32 operator<<(ostream& os, const oofE_Base& E)
33 {
34  E.extract(os);
35  return os;
36 }
37 
38 
39 // -------------------------------------------------------
40 // o o f E _ T a b l e
41 // -------------------------------------------------------
43  oofSingleListener(inTable), // so we know if it is destroyed
44  mTable(inTable),
45  mTableNumber(inTable->tableNumber()),
46  mOriginalTableInScope(true),
47  mConnection(inTable->mConnection)
48 {
49 }
50 
51 
53  oofSingleListener(&inTable), // so we know if it is destroyed
54  mTable(&inTable),
55  mTableNumber(inTable.tableNumber()),
56  mOriginalTableInScope(true),
57  mConnection(inTable.mConnection)
58 {
59 }
60 
61 
63  oofSingleListener(rhs),
64  mTable(rhs.mTable),
65  mTableNumber(rhs.mTableNumber),
66  mOriginalTableInScope(rhs.mOriginalTableInScope),
67  mConnection(rhs.mConnection)
68 {
69 }
70 
71 
73 {
74  mTable=0; // for Lint
75  mConnection=0;
76 }
77 
78 bool
79 oofE_Table::receiveMsg(OOFmsgT msg, unsigned long /*senderDefined*/)
80 {
81  if (msg==OOFmsg_BroadcasterClosing) { // dbTable going out of scope
82  mOriginalTableInScope = false;
83  mListensTo = 0;
84  dbTable* protoTable = mConnection->table(mTableNumber); // now point to prototype
85  if (protoTable==mTable) // this exception thrown as connection being deleted!
86  mTable = 0;
87  else
88  mTable = protoTable;
89  }
90  return true;
91 }
92 
93 
94 // -------------------------------------------------------
95 // o o f E _ D u p l i c a t e R e c o r d
96 // -------------------------------------------------------
97 oofE_DuplicateRecord::oofE_DuplicateRecord(dbTable* T, long datno, const char* action, const char* where) :
98  oofE_Table(T),
99  mISAMdatno(datno),
100  mAction(action),
101  mWhere(where)
102 {}
103 
104 
105 oofE_DuplicateRecord::oofE_DuplicateRecord(dbTable& T, long datno, const char* action, const char* where) :
106  oofE_Table(T),
107  mISAMdatno(datno),
108  mAction(action),
109  mWhere(where)
110 {}
111 
112 
113 void
115 {
116  os << "duplicate record on unique key, attempting to " << mAction
117  << " in function " << mWhere
118  << " on table: " << table()->tableName()
119  << ", ISAM file no " << mISAMdatno;
120 }
121 
122 
123 // -------------------------------------------------------
124 // o o f E _ R e c o r d L o c k e d
125 // -------------------------------------------------------
126 void
127 oofE_RecordLocked::extract(ostream& os) const
128 {
129  os
130  << "locked record on table: " << table()->tableName()
131  << "at record number: " << table()->recordNumber()
132  << "oid: " << table()->currentOID();
133 }
134 
135 
136 // -------------------------------------------------------
137 // o o f E _ C t r e e E r r o r
138 // -------------------------------------------------------
139 oofE_CtreeError::oofE_CtreeError(dbTable* T, long errNum, const char* action, const char* where) :
140  oofE_Table(T),
141  mErrorNumber(errNum),
142  mAction(action),
143  mWhere(where)
144 {}
145 
146 
147 oofE_CtreeError::oofE_CtreeError(dbTable& T, long errNum, const char* action, const char* where) :
148  oofE_Table(T),
149  mErrorNumber(errNum),
150  mAction(action),
151  mWhere(where)
152 {}
153 
154 
156  oofE_Table(rhs),
157  mErrorNumber(rhs.mErrorNumber),
158  mAction(rhs.mAction),
159  mWhere(rhs.mWhere)
160 {}
161 
162 
163 void
164 oofE_CtreeError::extract(ostream& os) const
165 {
166  os << "c-tree plus error: " << mErrorNumber
167  << " - attempting to " << mAction
168  << " in function: " << mWhere;
169  if (table())
170  os << " on table: " << table();
171 }
172 
173 
174 // -------------------------------------------------------
175 // o o f E _ C t r e e I S A M E r r o r
176 // -------------------------------------------------------
178  const char* action, const char* where) :
179  oofE_CtreeError(T, errNum, action, where),
180  mISAMdatno(datno)
181 {}
182 
183 
185  const char* action, const char* where) :
186  oofE_CtreeError(T, errNum, action, where),
187  mISAMdatno(datno)
188 {}
189 
190 
191 void
193 {
195  os << ", ISAM file no: " << mISAMdatno;
196 }
197 
198 
199 // -------------------------------------------------------
200 // o o f E _ C t r e e I S A M E r r o r A t O f f s e t
201 // -------------------------------------------------------
202 oofE_CtreeISAMErrorAtOffset::oofE_CtreeISAMErrorAtOffset(dbTable* T, long datno, long offset, long errNum,
203  const char* action, const char* where) :
204  oofE_CtreeISAMError(T, datno, errNum, action, where),
205  mOffset(offset)
206 {}
207 
208 
209 oofE_CtreeISAMErrorAtOffset::oofE_CtreeISAMErrorAtOffset(dbTable& T, long datno, long offset, long errNum,
210  const char* action, const char* where) :
211  oofE_CtreeISAMError(T, datno, errNum, action, where),
212  mOffset(offset)
213 {}
214 
215 
216 void
218 {
220  os << " offset: " << mOffset;
221 }
222 
223 
224 // -------------------------------------------------------
225 // o o f E _ C t r e e K e y E r r o r
226 // -------------------------------------------------------
227 oofE_CtreeKeyError::oofE_CtreeKeyError(dbTable* T, long keyNo, long errNum, const char* action, const char* where) :
228  oofE_CtreeError(T, errNum, action, where),
229  mKeyNo(keyNo)
230 {}
231 
232 
233 oofE_CtreeKeyError::oofE_CtreeKeyError(dbTable& T, long keyNo, long errNum, const char* action, const char* where) :
234  oofE_CtreeError(T, errNum, action, where),
235  mKeyNo(keyNo)
236 {}
237 
238 
239 void
240 oofE_CtreeKeyError::extract(ostream& os) const
241 {
242  oofE_CtreeError::extract(os); // use base method
243  os << " index file number: " << mKeyNo;
244 }
245 
246 
247 // -------------------------------------------------------
248 // o o f E _ C t r e e B l o b E r r o r
249 // -------------------------------------------------------
251  const char* action, const char* where) :
252  oofE_CtreeError(T, errNum, action, where),
253  mFieldNum(fldNum),
254  mBlobPos(-1),
255  mBlobLen(-1)
256 {}
257 
258 
260  const char* action, const char* where) :
261  oofE_CtreeError(T, errNum, action, where),
262  mFieldNum(fldNum),
263  mBlobPos(-1),
264  mBlobLen(-1)
265 {}
266 
267 
269  long blobPos, long blobLen,
270  const char* action, const char* where) :
271  oofE_CtreeError(T, errNum, action, where),
272  mFieldNum(fldNum),
273  mBlobPos(blobPos),
274  mBlobLen(blobLen)
275 {}
276 
277 
279  long blobPos, long blobLen,
280  const char* action, const char* where) :
281  oofE_CtreeError(T, errNum, action, where),
282  mFieldNum(fldNum),
283  mBlobPos(blobPos),
284  mBlobLen(blobLen)
285 {}
286 
287 
288 void
290 {
291  oofE_CtreeError::extract(os); // use base method
292 
293  os << " in field number: " << mFieldNum;
294 
295  dbField* theField = table()!=0 ? table()->field(mFieldNum) : 0;
296  if (theField != 0) {
297  const oofString fieldName = theField->fieldName();
298  if (fieldName.length() > 0)
299  os << " (" << fieldName << ")";
300  if (mBlobPos > -1 || mBlobLen > -1) {
301  os << endl;
302  if (mBlobPos > -1)
303  os << "record offset: " << mBlobPos << (mBlobLen > -1 ? ", " : "");
304  if (mBlobLen > -1)
305  os << " blob length: ", mBlobLen;
306  }
307  }
308 }
309 
310 
311 // -------------------------------------------------------
312 // o o f E _ T a b l e E r r o r
313 // -------------------------------------------------------
314 oofE_TableError::oofE_TableError(dbTable* T, ostream& os) :
315  oofE_Table(T),
316  mErrorString(os)
317 {}
318 
319 
320 oofE_TableError::oofE_TableError(dbTable& T, ostream& os) :
321  oofE_Table(T),
322  mErrorString(os)
323 {}
324 
325 
327  oofE_Table(T),
328  mErrorString(str)
329 {}
330 
331 
333  oofE_Table(T),
334  mErrorString(str)
335 {}
336 
337 
338 void
339 oofE_TableError::extract(ostream& os) const
340 {
341  os << mErrorString;
342 }
343 
344 
345 // -------------------------------------------------------
346 // o o f E _ G U I
347 // -------------------------------------------------------
349  oofE_Base(),
350  mGUI(gui)
351 {}
352 
353 
355 {
356  mGUI = 0; // for Lint
357 }
358 
359 // -------------------------------------------------------
360 // o o f E _ G U I E r r o r
361 // -------------------------------------------------------
363  oofE_GUI(gui),
364  mErrorString(str)
365 {}
366 
367 
368 oofE_GUIError::oofE_GUIError(dbGUIFactory* gui, ostream& os) :
369  oofE_GUI(gui),
370  mErrorString(os)
371 {}
372 
373 
374 void
375 oofE_GUIError::extract(ostream& os) const
376 {
377  os << mErrorString;
378 }
379 
380 
381 // -------------------------------------------------------
382 // o o f E _ M F C G U I E r r o r
383 // -------------------------------------------------------
385  oofE_GUI(gui),
386  mErrorString(str),
387  mTable(tbl)
388 {}
389 
390 
392  oofE_GUI(gui),
393  mErrorString(os),
394  mTable(tbl)
395 {}
396 
397 
399 {
400  mTable=0; // for lint
401 }
402 
403 
404 void
405 oofE_MFCGUIError::extract(ostream& os) const
406 {
407  os << mErrorString;
408 }
409 
410 
411 // -------------------------------------------------------
412 // o o f E _ S e l e c t i o n
413 // -------------------------------------------------------
415  oofE_Base(),
416  mErrorString(str)
417 {}
418 
419 
420 oofE_Selection::oofE_Selection(ostream& os) :
421  oofE_Base(),
422  mErrorString(os)
423 {}
424 
425 
426 void
427 oofE_Selection::extract(ostream& os) const
428 {
429  os << mErrorString;
430 }
431 
432 
433 // -------------------------------------------------------
434 // o o f E _ N o t I m p l e m e n t e d
435 // -------------------------------------------------------
437  oofE_Base(),
438  mErrorString(str)
439 {}
440 
441 
442 oofE_General::oofE_General(ostream& os) :
443  oofE_Base(),
444  mErrorString(os)
445 {}
446 
447 
448 void
449 oofE_General::extract(ostream& os) const
450 {
451  os << mErrorString;
452 }
453 
454 
455 // -------------------------------------------------------
456 // o o f E _ F i e l d
457 // -------------------------------------------------------
459  oofE_Base(),
460  mTable(T),
461  mField(field)
462 {}
463 
464 
466  oofE_Base(),
467  mTable(&T),
468  mField(field)
469 {}
470 
471 
473 {
474  mTable=0; // for Lint
475  mField=0;
476 }
477 
478 
479 
480 // -------------------------------------------------------
481 // o o f E _ F i e l d E r r o r
482 // -------------------------------------------------------
483 oofE_FieldError::oofE_FieldError(dbTable* T, dbField* field, const char* str) :
484  oofE_Field(T, field),
485  mErrorString(str)
486 {}
487 
488 
489 oofE_FieldError::oofE_FieldError(dbTable& T, dbField* field, const char* str) :
490  oofE_Field(T, field),
491  mErrorString(str)
492 {}
493 
494 
495 oofE_FieldError::oofE_FieldError(dbTable* T, dbField* field, ostream& os) :
496  oofE_Field(T, field),
497  mErrorString(os)
498 {}
499 
500 
501 oofE_FieldError::oofE_FieldError(dbTable& T, dbField* field, ostream& os) :
502  oofE_Field(T, field),
503  mErrorString(os)
504 {}
505 
506 
507 void
508 oofE_FieldError::extract(ostream& os) const
509 {
510  os << mErrorString;
511 }
512 
513 
514 // -------------------------------------------------------
515 // o o f E _ R a n g e E r r o r
516 // -------------------------------------------------------
518  oofE_Base(),
519  mErrorString(str)
520 {}
521 
522 
524  oofE_Base(),
525  mErrorString(os)
526 {}
527 
528 
529 void
530 oofE_RangeError::extract(ostream& os) const
531 {
532  os << mErrorString;
533 }
534 
535 
536 // -------------------------------------------------------
537 // o o f E _ R a m E r r o r
538 // -------------------------------------------------------
539 oofE_RamError::oofE_RamError(dbTable* T, ostream& os) :
540  oofE_Table(T),
541  mErrorString(os)
542 {}
543 
544 
545 oofE_RamError::oofE_RamError(dbTable& T, ostream& os) :
546  oofE_Table(T),
547  mErrorString(os)
548 {}
549 
550 
551 oofE_RamError::oofE_RamError(dbTable* T, const char* str) :
552  oofE_Table(T),
553  mErrorString(str)
554 {}
555 
556 
557 oofE_RamError::oofE_RamError(dbTable& T, const char* str) :
558  oofE_Table(T),
559  mErrorString(str)
560 {}
561 
562 
563 void
564 oofE_RamError::extract(ostream& os) const
565 {
566  os << "Ram error: " << mErrorString;
567 }
568 
569 // -------------------------------------------------------
570 // o o f E _ R a m p E r r o r
571 // -------------------------------------------------------
572 oofE_RampError::oofE_RampError(dbTable* T, ostream& os) :
573  oofE_RamError(T, os)
574 {}
575 
576 
577 oofE_RampError::oofE_RampError(dbTable& T, ostream& os) :
578  oofE_RamError(T, os)
579 {}
580 
581 
583  oofE_RamError(T, str)
584 {}
585 
586 
588  oofE_RamError(T, str)
589 {}
590 
591 
592 void
593 oofE_RampError::extract(ostream& os) const
594 {
595  os << "Ramp error: " << errorString();
596 }
597 
598 
599 // -------------------------------------------------------
600 // o o f E _ C t r e e C o n n e c t i o n E r r o r
601 // -------------------------------------------------------
603  const char* action, const char* where) :
604  oofE_Connection(C),
605  mErrorNumber(errNum),
606  mAction(action),
607  mWhere(where)
608 {}
609 
610 
612  oofE_Connection(C),
613  mErrorNumber(0),
614  mErrorString(os)
615 {}
616 
617 
619  oofE_Connection(C),
620  mErrorNumber(0),
621  mErrorString(str)
622 {}
623 
624 
625 void
627 {
628  if (mErrorNumber != 0)
629  os << "c-tree Plus connection error: " << mErrorNumber
630  << ", connection name: " << connection()->connectionName()
631  << " - attempting to " << mAction
632  << " in function: " << mWhere;
633  else
634  os << "c-tree Plus connection error: " << mErrorString;
635 }
636 
637 
638 // -------------------------------------------------------
639 // o o f E _ d B a s e C o n n e c t i o n E r r o r
640 // -------------------------------------------------------
642  const char* action, const char* where) :
643  oofE_Connection(C),
644  mErrorNumber(errNum),
645  mAction(action),
646  mWhere(where)
647 {}
648 
649 
651  oofE_Connection(C),
652  mErrorNumber(0),
653  mErrorString(os)
654 {}
655 
656 
658  oofE_Connection(C),
659  mErrorNumber(0),
660  mErrorString(str)
661 {}
662 
663 
664 void
666 {
667  if (mErrorNumber != 0)
668  os << "c-tree Plus connection error: " << mErrorNumber
669  << ", connection name: " << connection()->connectionName()
670  << " - attempting to " << mAction
671  << " in function: " << mWhere;
672  else
673  os << "dbase connection error: " << mErrorString;
674 }
675 
676 // -------------------------------------------------------
677 // o o f E _ R a m C o n n e c t i o n E r r o r
678 // -------------------------------------------------------
680  oofE_Connection(C),
681  mErrorString(str)
682 {}
683 
684 
686  oofE_Connection(C),
687  mErrorString(os)
688 {}
689 
690 
691 void
693 {
694  oofString connectionName(connection()->connectionName());
695 
696  os << "Ram connection error: " << mErrorString;
697  if (connectionName.length() > 0)
698  os << ", connection name: " << connectionName;
699 }
700 
701 
702 // -------------------------------------------------------
703 // o o f E _ R a m p C o n n e c t i o n E r r o r
704 // -------------------------------------------------------
707 {}
708 
709 
712 {}
713 
714 
715 void
717 {
718  oofString connectionName(connection()->connectionName());
719 
720  os << "Ramp connection error: " << errorString();
721  if (connectionName.length() > 0)
722  os << ", connection name: " << connectionName;
723 }
724 
725 
726 // -------------------------------------------------------
727 // o o f E _ d b U s e r
728 // -------------------------------------------------------
729 
730 
731 oofE_dbUser::oofE_dbUser(const oofString& str, long errorNumber):
732  mErrorString(str),
733  mErrorNumber(errorNumber)
734 {}
735 
736 oofE_dbUser::oofE_dbUser( ostream& os) :
737  mErrorString(os),
738  mErrorNumber(0)
739 {}
740 
741 void
742 oofE_dbUser::extract(ostream& os) const
743 {
744  os << mErrorString;
745 }
746 
747 
748 // -------------------------------------------------------
749 // o o f E _ o o f S c h e m a P a r s e r
750 // -------------------------------------------------------
751 
752 
754  mErrorString(str)
755  {}
756 
758  mErrorString(os)
759 {}
760 
761 void
763 {
764  os << mErrorString;
765 }
766 
767 // -------------------------------------------------------
768 // o o f E _ o o f C T R e s
769 // -------------------------------------------------------
770 
771 
773  mErrorString(str)
774  {}
775 
776 oofE_oofCTRes::oofE_oofCTRes( ostream& os) :
777  mErrorString(os)
778 {}
779 
780 void
781 oofE_oofCTRes::extract(ostream& os) const
782 {
783  os << mErrorString;
784 }
785 
786 
787 #ifdef _Macintosh
788 // -------------------------------------------------------
789 // o o f E _ M a c O S E r r
790 // -------------------------------------------------------
791 void
792 oofE_MacOSErr::extract(ostream& os) const
793 {
794  os << "Mac OS Error number: " << mErrNum;
795  if (mErrorString.length()>0)
796  os << " " << mErrorString;
797 }
798 
799 #endif
800 
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:508
oofE_RamConnectionError(dbConnect *C, const char *str)
Definition: oofexcep.cpp:679
OSErr mErrNum
Definition: oofexcep.h:508
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:240
oofE_RamError(dbTable *T, std::ostream &os)
oofE_dBaseConnectionError(dbConnect *C, long errNum, const char *action, const char *where)
Definition: oofexcep.cpp:641
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:339
dbTable * table(unsigned int) const
Definition: oof1.cpp:436
virtual const oofString & fieldName() const
Definition: oof3.h:769
precompilation header.
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:692
unsigned long recordNumber() const
Ordinal record number of current record in selection.
Definition: oof1.h:2041
oofE_MFCGUIError(dbGUIFactory *gui, dbTable *tbl, const char *str)
Definition: oofexcep.cpp:384
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:781
oofE_CtreeISAMErrorAtOffset(dbTable *T, long datno, long offset, long errNum, const char *action, const char *where)
Definition: oofexcep.cpp:202
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:289
oofE_CtreeISAMError(dbTable *T, long datno, long errNum, const char *action, const char *where)
Definition: oofexcep.cpp:177
dbTable * table() const
Definition: oofexcep.h:582
oofE_Field(dbTable *T, dbField *field)
Definition: oofexcep.cpp:458
oofE_Table(dbTable *)
Definition: oofexcep.cpp:42
virtual void extract(std::ostream &) const
Definition: oofexcep.cpp:127
oofString mErrorString
Definition: oofexcep.h:509
oofE_CtreeBlobError(dbTable *T, fieldNumT fldNum, long errNum, const char *action, const char *where)
Definition: oofexcep.cpp:250
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:742
Special limited oofReceiver which will only ever listen to one oofBroadcaster at a time...
Definition: oofmsg.h:133
oofE_oofCTRes(const oofString &)
Definition: oofexcep.cpp:772
Base exception for database table operations.
Definition: oofexcep.h:144
const OOFmsgT OOFmsg_BroadcasterClosing
Definition: oofmsg.h:40
Base exception for database field operations.
Definition: oofexcep.h:199
ostream & operator<<(ostream &os, const oofE_Base &E)
Definition: oofexcep.cpp:32
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:665
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:762
Base exception for database operations on the c-tree Plus backend.
Definition: oofexcep.h:342
oofE_CtreeKeyError(dbTable *T, long keyNo, long errNum, const char *action, const char *where)
Definition: oofexcep.cpp:227
oofE_RampConnectionError(dbConnect *C, const char *str)
Definition: oofexcep.cpp:705
Exception where we get a c-tree error number back for diagnosis.
Definition: oofexcep.h:363
const oofString & errorString() const
Definition: oofexcep.h:629
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:192
const oofString & errorString() const
Definition: oofexcep.h:619
oofE_DuplicateRecord(dbTable *T, long datno, const char *action, const char *where)
Definition: oofexcep.cpp:97
oofE_GUI(dbGUIFactory *gui)
Definition: oofexcep.cpp:348
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:530
oofE_RangeError(const char *str)
Definition: oofexcep.cpp:517
virtual void extract(std::ostream &) const =0
unsigned long length() const
Primary test: oofStringTest::emptyStringByNullInitIsLenZero()
Definition: oofstr.h:447
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:427
virtual ~oofE_Table()
Definition: oofexcep.cpp:72
Base class for exception hierarchy.
Definition: oofexcep.h:45
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:564
oofE_CtreeConnectionError(dbConnect *C, long errNum, const char *action, const char *where)
Definition: oofexcep.cpp:602
oofE_CtreeError(dbTable *T, long errNum, const char *action, const char *where)
Definition: oofexcep.cpp:139
const oofString & tableName() const
Definition: oof1.h:2369
Exception from the OOF_ramBackend database backend.
Definition: oofexcep.h:462
Base class for any GUI exception.
Definition: oofexcep.h:256
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:114
oofBroadcaster * mListensTo
Definition: oofmsg.h:149
dbField * field(fieldNumT) const
Definition: oof1.h:2355
oofE_oofSchemaParser(const oofString &)
Definition: oofexcep.cpp:753
unsigned short fieldNumT
Definition: oof1.h:276
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:593
Base class for persistent tables.
Definition: oof1.h:452
Portable highly capable string class.
Definition: oofstr.h:101
dbConnect * connection() const
Definition: oofexcep.h:609
virtual bool receiveMsg(OOFmsgT msg, unsigned long senderDefined)
The default receiveMsg behaviour is to delete yourself when the broadcaster closes.
Definition: oofexcep.cpp:79
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:164
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:375
Exception for database connection.
Definition: oofexcep.h:58
oofE_Selection(const char *str)
Definition: oofexcep.cpp:414
Abstract factory for dbGUI.
Definition: oof1.h:298
oofE_RampError(dbTable *T, std::ostream &os)
virtual ~oofE_Field()
Definition: oofexcep.cpp:472
unsigned long OOFmsgT
Definition: oofmsg.h:31
const oofString & connectionName() const
Definition: oof1.h:1640
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:626
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:405
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:792
Exception for database connection to RAM-based backend.
Definition: oofexcep.h:114
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:449
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:217
oidT currentOID()
Absolute record address of current record.
Definition: oof1.h:1938
oofE_General(const oofString &)
Definition: oofexcep.cpp:436
virtual void extract(std::ostream &os) const
Definition: oofexcep.cpp:716
virtual ~oofE_GUI()
Definition: oofexcep.cpp:354
virtual ~oofE_MFCGUIError()
Definition: oofexcep.cpp:398
oofE_dbUser(const oofString &, long errNum)
Definition: oofexcep.cpp:731
oofE_FieldError(dbTable *T, dbField *field, const char *str)
Definition: oofexcep.cpp:483
Base class for persistent fields in dbTable's.
Definition: oof3.h:63
oofE_GUIError(dbGUIFactory *gui, const char *str)
Definition: oofexcep.cpp:362
oofE_TableError(dbTable *T, std::ostream &os)
Abstract interface for database.
Definition: oof1.h:920