def wasLastResponseDBMSError():
 threadData = getCurrentThreadData()
 return (threadData.lastErrorPage and (threadData.lastErrorPage[0] == threadData.lastRequestUID))

def wasLastResponseDBMSError ( ) : threadData = getCurrentThreadData ( ) return ( threadData . lastErrorPage and ( threadData . lastErrorPage [ 0 ] == threadData . lastRequestUID ) )
returns true if the last web request resulted in a dbms error page .