wrap code that throws error on eval in
added sample code and notes on exceptions