Exchanged vanilla exception with an instance of BadMethodCallException