bug fix, refactoring and improved extractErrorMessage capabilities

This commit is contained in:
Miroslav Stampar
2010-12-25 10:16:20 +00:00
parent ea7ba19f6b
commit b472b96f92
4 changed files with 25 additions and 16 deletions

View File

@@ -160,3 +160,9 @@ SQL_STATEMENTS = {
"commit ",
"rollback ", ),
}
ERROR_PARSING_REGEXES = (
r"<b>[^<]*(fatal|error|warning|exception)[^<]*</b>:?\s+(?P<result>.+?)<br\s*/?\s*>",
r"<li>Error Type:<br>(?P<result>.+?)</li>",
r"error '[0-9a-f]{8}'((<[^>]+>)|\s)+(?P<result>[^<>]+)"
)