3 ms·
Is this like java.lang.UnsupportedOperationException?
by nomercy400 4y ago
Is this like java.lang.UnsupportedOperationException?
- orthoxerox 4y agoNo, that's System.NotSupportedException in .NET.
- jug 4y agoWhich in turn is not for unreachable or even unexpected cases but expected cases you’re fully aware of, maybe even documented, but that you don’t support.
- orthoxerox 4y agoYes, like Seek() on a NetworkStream.
- _old_dude_ 4y agoIn Java, usually an Error like AssertionError is used for those cases. By example, for a switch on an enum, the compiler inserts a "throw new ...Error()" automatically when the default case is not specified.