Browse Source

Merge pull request #10483 from nikitalita/patch-3

Specify that ``try``-``catch`` blocks are forbidden in cpp_usage_guidelines.rst
Matthew 6 months ago
parent
commit
d53cbb447d
1 changed files with 9 additions and 0 deletions
  1. 9 0
      contributing/development/cpp_usage_guidelines.rst

+ 9 - 0
contributing/development/cpp_usage_guidelines.rst

@@ -100,6 +100,15 @@ pull request.
 To follow the existing style, please use standard ``#ifdef``-based include
 guards instead of ``#pragma once`` in new files.
 
+``try``-``catch`` blocks
+~~~~~~~~~~~~~~~~~~~~~~~~
+
+C++ style exception handling using ``try`` and ``catch`` blocks is forbidden.
+This restriction is in place for several reasons, including performance, binary
+size and code complexity.
+Use :ref:`doc_common_engine_methods_and_macros_error_macros` instead.
+
+
 .. seealso::
 
     See :ref:`doc_code_style_guidelines_header_includes` for guidelines on sorting