|
|
| version 1.28, 2002/09/04 14:59:54 | version 1.30, 2003/01/21 15:51:11 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: sql fconnection decl. | Parser: sql fconnection decl. |
| Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| */ | */ |
| Line 85 public: | Line 85 public: |
| handlers) | handlers) |
| ); | ); |
| } catch(const Exception& e) { // query problem | } catch(const Exception& e) { // query problem |
| // give more specific source [were url] | if(strcmp(e.type(), "sql.connect")==0) { // if it is _throw exception, |
| throw Exception("sql.execute", | // give more specific source [were url] |
| &source, | throw Exception("sql.execute", |
| "%s", e.comment()); | &source, |
| "%s", e.comment()); | |
| } else | |
| /*re*/throw; | |
| } | } |
| } | } |