Extracted exceptionMatchesType function to encapsulate a gnarly if statement.
Extracted exceptionMatchesType function to encapsulate a gnarly if statement.

mikesprague/mxunit,mxunit/mxunit,mxunit/mxunit,dfair98/mxunit,virtix/mxunit,dfair98/mxunit,mikesprague/mxunit