Changed the constructor to remove the redundant 'pass' if-clause.
Reversed the entire clause and placed all other if-logic inside it.
Customized the exception messages to make things clearer.