exception handling for vm model