Defining your own exception type (class)