
7 respuestas

Ok, so I guess the quote was not the problem, I had invalid methods, etc.I did get this work now, so thank you: trigger throwExceptionnnn on Opportunity (before update) {
for (Opportunity opp : Trigger.new ){
if ( opp.name.startsWith('B')) {
throw new KatieException('katie test error');
}
}
}