-// $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/
class YAZ_EXPORT systemException: public exception {
public:
systemException ();
- int errcode () const;
const char *errmsg () const;
};
public:
* ~bib1Exception ();
bib1Exception (int errcode, const char *addinfo);
- int errcode () const;
const char *errmsg () const;
const char *addinfo () const;
};
CCL = 2
};
queryException (int qtype, const char *source);
- int errcode () 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
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";