What is the Python equivalent of Java's UnsupportedOperationException?
<p>I'm looking at Python's <a href="https://docs.python.org/2/library/exceptions.html" rel="noreferrer">built-in exceptions</a> and wondering what the closest equivalent of Java's <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/UnsupportedOperationException.html" rel="noreferrer"><code>UnsupportedOperationException</code></a> is. <a href="https://docs.python.org/2/library/exceptions.html#exceptions.NotImplementedError" rel="noreferrer"><code>NotImplementedError</code></a> is close but seems to suggest something slightly different. Should I be using <a href="https://docs.python.org/2/library/exceptions.html#exceptions.RuntimeError" rel="noreferrer"><code>RuntimeError</code></a> or implementing my own <code>Exception</code>?</p>