summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/web/AbstractErrorHandler.py
diff options
context:
space:
mode:
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