Raise exceptions on improper use cases