RFC #0164: Exceptions for XPClass::get*()

at 2008-07-14 in RFCs by friebe (0 comments)

Scope of Change
The following methods in lang.XPClass will throw exceptions instead of returning NULL for the case the respective element is not found:

  • getConstructor()
  • getMethod(string name)
  • getField(string name)

Rationale
Allow for chaining, be consistent with other APIs (if a hasX method exists, the getX method will throw an exception) and the getAnnotation() method.

Read the full RFC here



Subscribe

You can subscribe to the XP framework's news by using RSS syndication.


Categories

News
General
PHP5
Announcements
RFCs
Further reading
Examples
Editorial
EASC
Experiments
Unittests
Databases

Related

Find related articles by a search for «RFC».