Use own type of exception