summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
07d4650)
method in the various subclasses of exception. We can't remove
the errmsg() and addinfo() declarations from the subclasses,
unfortunately, because we have overridden implementations.
Nice one, C++! What a very idiosyncratic language.
-// $Id: master-header,v 1.8 2002-11-04 23:12:18 mike Exp $
+// $Id: master-header,v 1.9 2002-11-12 22:43:56 mike Exp $
//
// ZOOM C++ Binding.
// The ZOOM homepage is at http://zoom.z3950.org/
//
// ZOOM C++ Binding.
// The ZOOM homepage is at http://zoom.z3950.org/
class YAZ_EXPORT systemException: public exception {
public:
systemException ();
class YAZ_EXPORT systemException: public exception {
public:
systemException ();
const char *errmsg () const;
};
const char *errmsg () const;
};
public:
* ~bib1Exception ();
bib1Exception (int errcode, const char *addinfo);
public:
* ~bib1Exception ();
bib1Exception (int errcode, const char *addinfo);
const char *errmsg () const;
const char *addinfo () const;
};
const char *errmsg () const;
const char *addinfo () const;
};
CCL = 2
};
queryException (int qtype, const char *source);
CCL = 2
};
queryException (int qtype, const char *source);
const char *errmsg () const;
const char *addinfo () const;
};
const char *errmsg () const;
const char *addinfo () const;
};
-// $Header: /home/cvsroot/yaz++/zoom/zexcept.cpp,v 1.5 2002-10-30 09:13:12 adam Exp $
+// $Header: /home/cvsroot/yaz++/zoom/zexcept.cpp,v 1.6 2002-11-12 22:43:56 mike Exp $
// Z39.50 Exception classes
// Z39.50 Exception classes
- int systemException::errcode() const {
- return code;
- }
-
const char *systemException::errmsg() const {
return strerror(code);
}
const char *systemException::errmsg() const {
return strerror(code);
}
// or less work -- it just leaks memory.
}
// or less work -- it just leaks memory.
}
- int bib1Exception::errcode() const {
- return code;
- }
-
const char *bib1Exception::errmsg() const {
return diagbib1_str(code);
}
const char *bib1Exception::errmsg() const {
return diagbib1_str(code);
}
//delete q; // ### see comment on bib1Exception destructor
}
//delete q; // ### see comment on bib1Exception destructor
}
- int queryException::errcode() const {
- return code;
- }
-
const char *queryException::errmsg() const {
switch (code) {
case PREFIX: return "bad prefix search";
const char *queryException::errmsg() const {
switch (code) {
case PREFIX: return "bad prefix search";