X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzexcept.cpp;h=a012c5d79435ad4d8a6733daa51682cf8dff246e;hb=7b9c683505fd79972d6f3d397ac1c6e9040d2110;hp=bb8743ae6f70e577d5b86a51a8cc2b730f76f106;hpb=b8248fc2b2eb866a23a677135deb4633cb1f3322;p=yazpp-moved-to-github.git diff --git a/zoom/zexcept.cpp b/zoom/zexcept.cpp index bb8743a..a012c5d 100644 --- a/zoom/zexcept.cpp +++ b/zoom/zexcept.cpp @@ -1,4 +1,4 @@ -// $Header: /home/cvsroot/yaz++/zoom/zexcept.cpp,v 1.3 2002-10-09 09:07:10 mike Exp $ +// $Header: /home/cvsroot/yaz++/zoom/zexcept.cpp,v 1.5 2002-10-30 09:13:12 adam Exp $ // Z39.50 Exception classes @@ -26,7 +26,7 @@ namespace ZOOM { - systemException::systemException() : exception::exception(errno){ + systemException::systemException() : exception(errno){ code = errno; } @@ -41,7 +41,7 @@ namespace ZOOM { 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", @@ -50,7 +50,7 @@ namespace ZOOM { #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); @@ -84,13 +84,13 @@ namespace ZOOM { queryException::queryException(int qtype, const char *source) : - exception::exception(qtype) { + exception(qtype) { q = new char[strlen(source)+1]; strcpy((char*) q, source); } queryException::~queryException() { - delete q; + //delete q; // ### see comment on bib1Exception destructor } int queryException::errcode() const {