gracefully raise exception