Trying to catch an assertion failed exception with a message. Found the error after some annoying crashes. Not particularly fond of why the following message was generated, instead of simply telling the user that he/she forgot a "semi-colon" at the end of a statement. At other instances, missing a semi-colon results in a small red squiggle on the editor. Would've expected the same here!
try
{
for(Constraint cc <- constraints)
{
...
..
}
}catch AssertionFailed(str msg)
{
println("Error: <msg>") //I had simply forgotten a semi-colon,
}
Resulted in console output: "Missing Modifier: java". Why is this message being generated and how is that helpful to the developer?