If I have an Error module defined containing my application defined exceptions as something like:

```
class Error(Exception):
        pass

class NoSchemaVersion(Error):
        def __init__(self):
                self.code = 1
                self.msg  = "No schema version specified"
        pass

class NoMsgType(Error):
        def __init__(self):
                self.code = 2
                self.msg = "No message type specified"
        pass

```

How do I would I handle specific exceptions when they are raised. I tried something like:

```
import Error
errors = Error.Error()

try:
   <do some stuff>
except errors.NoMsgType:
   <stuff>

```

but I get the message:

```
AttributeError: 'Error' object has no attribute 'NoMsgType'

```

What am I doing wrong?