The Force.com Apex Code Developer's Guide as an official document from salesforce site, should contain the latest features and functions, instead of confusing developers. In the latest edition, it lists a lot of reserved keywords in page 574. However, this list is wrong. These are some of the faults:
future is in the list but it is NOT a keyword
rollback is NOT a keyword
type is NOT a keyword
static is missing in this list but it is a keyword
A lot of database literals are not keywords any more:
The result is a little weird. Why isn't rollback a keyword, but commit is? Why future was?
Can anybody review the document and keep it up-to-date?
I have a page on my force.com sites. One of page has a problem:
chargeResult = ChargentSFA.TChargentOperations.ChargeOpportunity_Click(Order.Id);
errorMessage = ex.getMessage();
I invoked the Chargent package to do some payment operations here. That's fine. But if any exceptions occured, it was caught by the catch block. But there will be an error messages says: Authorization Required. Seems my exception was not caught. Actually, I checked the debug log, the exception was caught properly.
Anybody has seen the same errors? If an exception occured, no matter it was caught or not, it will be redirected to the "Authorization Required" page. Why?