I am writing a program with `GTK` where you have to insert text in a settings menu. If the settings are imputed wrong, the terminal will display an error message. It does not matter what the error message is, I just want to be able to create my own error message telling the user to correct the problem, and how to correct the problem.

I thought something like this would work:

```
if OSError == true:
    print "Custom Error Message"

```