User Based Exception program not working
<p>This code does not work. Please tell what the error is....</p>

<pre><code>class Error(Exception):
    def __init__(self,mssg):
        self.mssg = mssg

class InputError(Error):
    def __init__(self,val):
        super("Input Error")
        print val
</code></pre>

<p>Now I write in other part of my program</p>

<pre><code>a = raw_input("Enter a number from 0-9: ")
if (ord(a)&gt;47 and ord(a)&lt;58):
    pass
else:
    raise InputError(a)
</code></pre>

<p>Now when I pass 'a' I get  <code>super expected a type but got a string</code> I just want to pass that message to the base class and display it along with the wrong value.</p>

<p>What am I doing wrong here</p>
