Add exception support for mooseError/mooseWarning

New feature and tests added satisfying #3615.