catch exception at valueof