added option to define custom exception
Merge branch 'master' of github.com:marcusg/force_format