|
|
| version 1.67, 2002/12/09 11:14:55 | version 1.68, 2002/12/09 12:19:16 |
|---|---|
| Line 59 public: | Line 59 public: |
| one can simply 'throw' from dynamic library. | one can simply 'throw' from dynamic library. |
| [sad story: one can not longjump/throw due to some bug in gcc as of 3.2.1 version] | [sad story: one can not longjump/throw due to some bug in gcc as of 3.2.1 version] |
| */ | */ |
| virtual void _throw(const SQL_Exception& aexception) { | virtual void _throw(const SQL_Error& aexception) { |
| // converting SQL_exception to parser Exception | // converting SQL_exception to parser Exception |
| // hiding passwords and addresses from accidental show [imagine user forgot @exception] | // hiding passwords and addresses from accidental show [imagine user forgot @exception] |
| #ifdef PA_WITH_SJLJ_EXCEPTIONS | #ifdef PA_WITH_SJLJ_EXCEPTIONS |
| Line 67 public: | Line 67 public: |
| #else | #else |
| fexception= | fexception= |
| #endif | #endif |
| Exception(aexception.ftype, | Exception(aexception.type(), |
| aexception.fproblem_source?static_cast<const String*>(aexception.fproblem_source) | aexception.problem_source()?static_cast<const String*>(aexception.problem_source()) |
| :&url_without_login(pool(), furl), | :&url_without_login(pool(), furl), |
| aexception.fcomment); | aexception.comment()); |
| #ifndef PA_WITH_SJLJ_EXCEPTIONS | #ifndef PA_WITH_SJLJ_EXCEPTIONS |
| longjmp(mark, 1); | longjmp(mark, 1); |