fork download
  1. public class AccountHandler {
  2. public static void updateAccountStatus(Id accountId) {
  3. Account acc = [SELECT Id, Status__c FROM Account WHERE Id = :accountId];
  4. acc.Status__c = 'Reviewed';
  5. update acc;
  6. }
  7. }
  8.  
Success #stdin #stdout #stderr 0.01s 8904KB
stdin
Standard input is empty
stdout
Object: UndefinedObject error: did not understand #AccountHandler
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
UndefinedObject class(Object)>>doesNotUnderstand: #AccountHandler (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:1)
stderr
./prog:2: parse error, expected '}'