Throw exception for cleaner error.