Integer count = 0;
Integer maxTries = 3;
while(true) {
try {
// Some Code
// break out of loop, or return, on success
} catch (Exception e) {
// handle exception
if (++count == maxTries) throw e;
}
}
Notes of Salesforce Developer
Integer count = 0;
Integer maxTries = 3;
while(true) {
try {
// Some Code
// break out of loop, or return, on success
} catch (Exception e) {
// handle exception
if (++count == maxTries) throw e;
}
}
Tema Seamless René, sviluppato da Altervista
Apri un sito e guadagna con Altervista - Disclaimer - Segnala abuso - Privacy Policy - Personalizza tracciamento pubblicitario