Checking args passed to exception