Stefan Sayer writes:
> mysql.connect catches mysqlpp::ConnectionFailed and
> mysqlpp::Exception, and in my mysql++ mysqlpp::Exception is the base
> class for all other exceptions. could it be that this exceptions is
> thrown somewhere else?
stafan,
the exception error only occurs only when i give bad username/password
to mysql.connect() so it must be somehow related to it.
debug at level 3 does not tell much:
Dec 14 08:01:07 sip sems[5247]: [#b5195b70] [onSessionStart, DSMCall.cpp:173]
DEBUG: DSMCall::onSessionStart
Dec 14 08:01:07 sip sems[5247]: [#b5195b70] [runEvent, DSMStateEngine.cpp:527]
DEBUG: checking transition 'session start'
Dec 14 08:01:07 sip sems[5247]: [#b5195b70] [runEvent, DSMStateEngine.cpp:536]
DEBUG: transition 'session start' matched.
Dec 14 08:01:07 sip sems[5247]: [#b5195b70] [runEvent, DSMStateEngine.cpp:575]
DEBUG: changing to new state 'session_started'
Dec 14 08:01:07 sip sems[5247]: [#b5195b70] [runEvent, DSMStateEngine.cpp:598]
DEBUG: running 4 pre_actions of state 'session_started'
Dec 14 08:01:07 sip sems[5247]: [#b5195b70] [runactions,
DSMStateEngine.cpp:231] DEBUG: running 4 DSM action elements
Dec 14 08:01:07 sip sems[5247]: [#b5195b70] [runactions,
DSMStateEngine.cpp:236] DEBUG: executing
'sets($db_url="mysql://foo:bar$@localhost/sems")'
Dec 14 08:01:07 sip sems[5247]: [#b5195b70] [execute, DSMCoreModule.cpp:640]
DEBUG: set $db_url='mysql://foo:bar@localhost/sems'
Dec 14 08:01:07 sip sems[5247]: [#b5195b70] [runactions,
DSMStateEngine.cpp:236] DEBUG: executing 'log(1, $db_url)'
Dec 14 08:01:07 sip sems[5247]: [#b5195b70] [execute, DSMCoreModule.cpp:455]
WARNING: FSM: $db_url 'mysql://foo:bar@localhost/sems'
Dec 14 08:01:07 sip sems[5247]: [#b5195b70] [runactions,
DSMStateEngine.cpp:236] DEBUG: executing 'mysql.connect($db_url)'
Dec 14 08:01:07 sip sems[5247]: [#b5195b70] [processEventsCatchExceptions,
AmSession.cpp:392] ERROR: 500 unexpected exception.
Dec 14 08:01:07 sip sems[5247]: [#b5195b70] [run, AmSession.cpp:309] DEBUG:
session event loop ended, finalizing session
Dec 14 08:01:07 sip sems[5247]: [#b5195b70] [finalize, AmSession.cpp:485]
DEBUG: running finalize sequence...
in this test script i had:
transition "mysql error" session_started - exception / {
log(1, "mysql error!");
stop(true);
} -> end;
but no explicit throws.
-- juha
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems