docs: catch exceptions by reference-to-const in code style examples

Change-Id: I06c39dfb00c06a9e7dd04cda15d00a6f7f768ce3
Refs: #3221
diff --git a/docs/code-style.rst b/docs/code-style.rst
index c8d558f..e54b780 100644
--- a/docs/code-style.rst
+++ b/docs/code-style.rst
@@ -285,7 +285,7 @@
         try {
           statements;
         }
-        catch (Exception& exception) {
+        catch (const Exception& exception) {
           statements;
         }
 
@@ -297,7 +297,7 @@
           {
             statements;
           }
-        catch (Exception& exception)
+        catch (const Exception& exception)
           {
             statements;
           }