Add exception support for mooseError/mooseWarning

New feature and tests added satisfying #3615.
Nice, thanks for adding this test.