Fixed incorrect exception parameters error, like in issue #c5a792c690cdd5a5339ce19201eb4b3ed50c0066 and #b72ec6df1489ba16fcd8f9a1f3c624baa0518291