unimplemented
Marks a code path as intentionally unsupported and throws if execution reaches it.
Usage
unimplemented(message?)
Use unimplemented for behavior the application deliberately does not support. Its never return type allows it in any expression position, but it always throws at runtime. Use todo for unfinished work and unreachable for logically impossible paths.
Parameters
messagestringoptional
optional context appended to the thrown error message.
Returns
never returns; the function always throws.
Throws
An Error with not implemented, optionally followed by message.
See also
todo— unfinished behaviorunreachable— logically impossible behavior