Which code pattern is used to handle errors after execution of an operation?
A.
IDfOperationMonitor myOpMonitor = …;
operation.setOperationMonitor(myOpMonitor);
if (! operation.execute())
{
// handle errors using myOpMonitor
}
B.
if (!operation.execute())
{
…
operation.reportError(…);
…
}
C.
if (!operation.execute())
{
…
operation.logError(…);
…
}
D.
if (!operation.execute())
{
…
operation.getErrors();
…
}