<div dir="ltr">When you try to instantiate a record like so, for example:<div><br></div><div>Vtiger_Record_Model::getInstanceById($id);</div><div><br></div><div>the function CRMEntity::retrieve_entity_info throws exceptions when the record is not in the db or was deleted:</div><div><br></div><div><div><img src="cid:ii_kh2uk98b0" alt="image.png" width="542" height="125"><br></div></div><div><br></div><div>Those exceptions are too general and it seems that $app_strings is empty (tested on vt 7.3). So you don't even get the message.</div><div><br></div><div>Wouldn't it be better to create RecordNotFoundException and RecordDeletedException ? So that we can catch them elsewhere? And if we don't catch them, at least the exception name quickly gives you a hint of the problem.</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Saludos<div><br></div><div>RubĂ©n</div></div></div></div></div></div>