Python‎ > ‎webbrowser‎ > ‎

webbrowser.Error()

http://www.adilwaseem.com/

Definition
The provide raise the error to the execution.

Syntax
webbrowser.Error(x)

Parameter
string

Examples
Here is how Error method printed the error message.
 import webbrowser

x=input("Please enter web dress:")

if x.__eq__('www.pythonlake.com'):

    webbrowser.Error("Not allowed to access the file")

>>> 
Please enter web dress:www.amazon.com
Not allowed to access the file
>>> 

Comments