provide more information when exception is thrown