Given the following block code: try{ list retrievedrecords = [select id from account where website = null]; }catch(exception e){ //manage exception logic } what should a developer do to ensure the code execution is disrupted if the retrievedrecordslist remains empty after the soql query?.

Respuesta :

Answer:

Check the state of retrieved records variable and use system.assert false if the variable is empty.

Otras preguntas