Java Experts Take Note:
Calling M.error(<string>) is essentially the same as throwing new MidasException(<string>). The method call to M.error(...) is just intended to make things easier for those new to Java.