• sirkid
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies

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:

last_90_days

last_month

last_n_days

last_week

next_90_days

next_month

next_n_days

next_week

today

tomorrow

yesterday

convertcurrency

tolabel

 

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?

  • August 03, 2012
  • Like
  • 0

Hi Guys,

I have a page on my force.com sites. One of page has a problem:

 

try
            {
                chargeResult = ChargentSFA.TChargentOperations.ChargeOpportunity_Click(Order.Id);
            }
            catch(Exception ex)
            {
                ApexPages.addMessages(ex);
                errorMessage = ex.getMessage();
                return Page.OrderCreated;
            }

 

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?

Help!

  • November 18, 2009
  • Like
  • 0