Raise an exception if misconfigured