Throwing new UnexpectedTypeException is confusing due to documentation misinformation

Former Member
Former Member
When throwing new UnexpectedTypeException, there is a runtime error claiming there is not enough arguments provided. It happens in both these cases:
throw new Lang.UnexpectedTypeException();
throw new Lang.UnexpectedTypeException("some unsupported type")


The documentation is pretty clear on how to throw this exception - no parameters. It's here: https://developer.garmin.com/downloads/connect-iq/monkey-c/doc/Toybox/Lang/UnexpectedTypeException.html

The actual arguments list is some 3 arguments: one is the exception message, and two others I'm not sure what they mean. I've just took an example from this post: https://forums.garmin.com/forum/developers/connect-iq/1467100-serializing-to-json

Could you please fix the documentation?