mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
add debugging information
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9008 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
|
||||
# DO NOT MODIFY THIS CODE - AUTOMATICALLY GENERATED BY SMC
|
||||
# DO NOT EDIT.
|
||||
# generated by smc (http://smc.sourceforge.net/)
|
||||
# from file : apirequest.sm
|
||||
|
||||
import statemap
|
||||
|
||||
|
||||
class ApiRequestState(statemap.State):
|
||||
|
||||
def Entry(self, fsm):
|
||||
@@ -31,7 +33,7 @@ class ApiRequestState(statemap.State):
|
||||
fsm.getDebugStream().write('TRANSITION : Default\n')
|
||||
msg = "\n\tState: %s\n\tTransition: %s" % (
|
||||
fsm.getState().getName(), fsm.getTransition())
|
||||
raise TransitionUndefinedException, msg
|
||||
raise statemap.TransitionUndefinedException, msg
|
||||
|
||||
class MainMap_Default(ApiRequestState):
|
||||
|
||||
@@ -44,7 +46,7 @@ class MainMap_Default(ApiRequestState):
|
||||
fsm.clearState()
|
||||
try:
|
||||
ctxt.setRequestFinished()
|
||||
ctxt.errbackDeferred("Protocol failure")
|
||||
ctxt.errbackDeferred("Protocol failure - was not expecting blank line")
|
||||
finally:
|
||||
fsm.setState(endState)
|
||||
|
||||
@@ -57,7 +59,7 @@ class MainMap_Default(ApiRequestState):
|
||||
fsm.clearState()
|
||||
try:
|
||||
ctxt.setRequestFinished()
|
||||
ctxt.errbackDeferred("Protocol failure")
|
||||
ctxt.errbackDeferred("Protocol failure - was not expecting content to be finished")
|
||||
finally:
|
||||
fsm.setState(endState)
|
||||
|
||||
@@ -70,7 +72,7 @@ class MainMap_Default(ApiRequestState):
|
||||
fsm.clearState()
|
||||
try:
|
||||
ctxt.setRequestFinished()
|
||||
ctxt.errbackDeferred("Protocol failure")
|
||||
ctxt.errbackDeferred("Protocol failure - was not expecting content-length header")
|
||||
finally:
|
||||
fsm.setState(endState)
|
||||
|
||||
@@ -83,7 +85,7 @@ class MainMap_Default(ApiRequestState):
|
||||
fsm.clearState()
|
||||
try:
|
||||
ctxt.setRequestFinished()
|
||||
ctxt.errbackDeferred("Protocol failure")
|
||||
ctxt.errbackDeferred("Protocol failure - was not expecting api response")
|
||||
finally:
|
||||
fsm.setState(endState)
|
||||
|
||||
@@ -96,7 +98,7 @@ class MainMap_Default(ApiRequestState):
|
||||
fsm.clearState()
|
||||
try:
|
||||
ctxt.setRequestFinished()
|
||||
ctxt.errbackDeferred("Protocol failure")
|
||||
ctxt.errbackDeferred("Protocol failure - was not expecting needing to process a line")
|
||||
finally:
|
||||
fsm.setState(endState)
|
||||
|
||||
|
Reference in New Issue
Block a user