-// $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
code = errno;
}
- int systemException::errcode() const {
- return code;
- }
-
const char *systemException::errmsg() const {
return strerror(code);
}
// or less work -- it just leaks memory.
}
- int bib1Exception::errcode() const {
- return code;
- }
-
const char *bib1Exception::errmsg() const {
return diagbib1_str(code);
}
//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";