Difference between revisions of "Documentation/DevGuide/AppendixA/Exceptions"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (1 revision(s))
m (Robot: Changing Category:Appendix)
Line 17: Line 17:
  
 
{{PDL1}}
 
{{PDL1}}
[[Category: Appendix]]
+
 
 +
[[Category:Documentation/Developers Guide/Appendix]]

Revision as of 11:21, 4 June 2008



Exceptions are special classes which describe exceptional states.

Naming

Exception identifiers begin with a capital uppercase letter, and are put in initial caps and always end with Exception, (for example, com.sun.star.lang.IllegalArgumentException. Avoid abbreviations.

Usage

The OpenOffice.org API uses exceptions as the general error handling concept. However, the API should be designed that it is possible to avoid exceptions in typical error situations, such as opening non-existent files.

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools