summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/web/AbstractErrorHandler.py
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2013-11-24 15:25:14 +0100
committerXisco Fauli <anistenis@gmail.com>2013-11-24 18:17:18 +0100
commit0ca978e9dff389b950d0577cd9120e3149c6ed6f (patch)
tree070011142f5375884495bcdfca6795c22261512b /wizards/com/sun/star/wizards/web/AbstractErrorHandler.py
parent59e09804346724063ea39a11b20d65e79ce16c95 (diff)
pyweb: some pyflakes love
Change-Id: I317656ca26eec5946959ac21e7da335196dd8548
Diffstat (limited to 'wizards/com/sun/star/wizards/web/AbstractErrorHandler.py')
-rw-r--r--wizards/com/sun/star/wizards/web/AbstractErrorHandler.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/wizards/com/sun/star/wizards/web/AbstractErrorHandler.py b/wizards/com/sun/star/wizards/web/AbstractErrorHandler.py
index 5f79384ef839..3f9a10263ca4 100644
--- a/wizards/com/sun/star/wizards/web/AbstractErrorHandler.py
+++ b/wizards/com/sun/star/wizards/web/AbstractErrorHandler.py
@@ -66,7 +66,7 @@ class AbstractErrorHandler(ErrorHandler):
return self.showMessage(self.getMessageFor(ex, arg, ix, errorType), errorType)
elif (errorType == ErrorHandler.ERROR_MESSAGE):
return self.showMessage(self.getMessageFor(ex, arg, ix, errorType), errorType)
- raise IllegalArgumentException("unknown error type")
+ raise ValueError("unknown error type")
# @deprecated
# @param message
@@ -109,7 +109,7 @@ class AbstractErrorHandler(ErrorHandler):
return 2
elif (errorType in (ErrorHandler.ERROR_WARNING, ErrorHandler.ERROR_MESSAGE)):
return 1
- raise IllegalArgumentException("unkonown error type")
+ raise ValueError("unkonown error type")
# @param errorType
@@ -136,7 +136,7 @@ class AbstractErrorHandler(ErrorHandler):
return OK
elif (errorType == ErrorHandler.ERROR_MESSAGE):
return OK
- raise IllegalArgumentException("unkonown error type")
+ raise ValueError("unkonown error type")
# @deprecated
# @param errorType
@@ -163,7 +163,7 @@ class AbstractErrorHandler(ErrorHandler):
return "warningbox"
elif (errorType == ErrorHandler.ERROR_MESSAGE):
return "infobox"
- raise IllegalArgumentException("unkonown error type")
+ raise ValueError("unkonown error type")
# renders the error
# @param ex the exception