Difference between revisions of "Documentation/DevGuide/AppendixA/Exceptions"
From Apache OpenOffice Wiki
< Documentation | DevGuide
m (1 revision(s)) |
m |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
|NextPage=Documentation/DevGuide/AppendixA/Enums | |NextPage=Documentation/DevGuide/AppendixA/Enums | ||
}} | }} | ||
− | {{DISPLAYTITLE:Exceptions}} | + | {{Documentation/DevGuideLanguages|Documentation/DevGuide/AppendixA/{{SUBPAGENAME}}}} |
+ | {{DISPLAYTITLE:Exceptions}} | ||
Exceptions are special classes which describe exceptional states. | Exceptions are special classes which describe exceptional states. | ||
==== Naming ==== | ==== Naming ==== | ||
− | Exception identifiers begin with a capital uppercase letter, and are put in initial caps and always end with Exception, | + | Exception identifiers begin with a capital uppercase letter, and are put in initial caps and always end with Exception, for example, <idl>com.sun.star.lang.IllegalArgumentException</idl>. Avoid abbreviations. |
==== Usage ==== | ==== Usage ==== | ||
− | The {{ | + | The {{AOo}} 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. |
{{PDL1}} | {{PDL1}} | ||
− | [[Category: Appendix]] | + | |
+ | [[Category:Documentation/Developer's Guide/Appendix]] |
Latest revision as of 13:52, 22 December 2020
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 Apache OpenOffice 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). |