-// $Header: /home/cvsroot/yaz++/zoom/master-header,v 1.4 2002-10-10 22:47:51 mike Exp $
+// $Header: /home/cvsroot/yaz++/zoom/master-header,v 1.5 2002-10-30 09:13:31 adam Exp $
//
// ZOOM C++ Binding.
// The ZOOM homepage is at http://zoom.z3950.org/
* const char *q;
public:
* ~queryException ();
- static const int PREFIX = 1;
- static const int CCL = 2;
+ enum {
+ PREFIX = 1,
+ CCL = 2
+ };
queryException (int qtype, const char *source);
int errcode () const;
const char *errmsg () const;
-// $Header: /home/cvsroot/yaz++/zoom/zexcept.cpp,v 1.4 2002-10-11 11:54:05 mike Exp $
+// $Header: /home/cvsroot/yaz++/zoom/zexcept.cpp,v 1.5 2002-10-30 09:13:12 adam Exp $
// Z39.50 Exception classes
- systemException::systemException() : exception::exception(errno){
+ systemException::systemException() : exception(errno){
code = errno;
}
bib1Exception::bib1Exception(int errcode, const char *addinfo) :
- exception::exception(errcode) {
+ exception(errcode) {
info = new char[strlen(addinfo)+1];
strcpy((char*) info, addinfo);
//fprintf(stderr, "made new bib1Exception 0x%lx (%d, 0x%lx=%s)\n",
#if 0
bib1Exception::bib1Exception(bib1Exception& src) :
- exception::exception(src) {
+ exception(src) {
code = src.code;
info = new char[strlen(src.info)+1];
strcpy((char*) info, src.info);
queryException::queryException(int qtype, const char *source) :
- exception::exception(qtype) {
+ exception(qtype) {
q = new char[strlen(source)+1];
strcpy((char*) q, source);
}