Python Forum

Full Version: Looking for an english word
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm looking for an english expression to write here
def restart(self):
    raise RuntimeError("Restarting the server is not ????")
I want the message to imply that we don't intend to implement this feature anytime soon. Words like 'available' or 'implemented' aren't precise enough. Can you suggest a better error message?
"supported"? If you are okay with being a little snarky, you could use "was not in the requirements."
Not direct asnwer to your question but check https://docs.python.org/3/library/except...entedError
If after all you have plans to implement it - better use this one, but if you don't have plans to implement it at all - check the note

As to the question - I would use something like Restarting the server is not in implementation plans
Thank you, I think I'll use
raise NotSupportedError('Restarting the server is not in implementation plans.')
"going to happen"