aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-28 19:03:39 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-28 19:04:56 +0800
commit5a5d21d0c8d24ca8a6685d023cf07b2d586addcd (patch)
tree85349f121e708a7fd44d84998d5377b9da8e39b0 /docs
parent2b26d6b9d7edc86f99db625328d4a3810ab0ee06 (diff)
downloaddexon-solidity-5a5d21d0c8d24ca8a6685d023cf07b2d586addcd.tar
dexon-solidity-5a5d21d0c8d24ca8a6685d023cf07b2d586addcd.tar.gz
dexon-solidity-5a5d21d0c8d24ca8a6685d023cf07b2d586addcd.tar.bz2
dexon-solidity-5a5d21d0c8d24ca8a6685d023cf07b2d586addcd.tar.lz
dexon-solidity-5a5d21d0c8d24ca8a6685d023cf07b2d586addcd.tar.xz
dexon-solidity-5a5d21d0c8d24ca8a6685d023cf07b2d586addcd.tar.zst
dexon-solidity-5a5d21d0c8d24ca8a6685d023cf07b2d586addcd.zip
Add note about throw being deprecated
Diffstat (limited to 'docs')
-rw-r--r--docs/control-structures.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst
index 796e9238..05254903 100644
--- a/docs/control-structures.rst
+++ b/docs/control-structures.rst
@@ -389,6 +389,9 @@ There are two other ways to trigger exceptions: The ``revert`` function can be u
revert the current call. In the future it might be possible to also include details about the error
in a call to ``revert``. The ``throw`` keyword can also be used as an alternative to ``revert()``.
+.. note::
+ From version 0.4.13 the ``throw`` keyword is deprecated and will be phased out in the future.
+
When exceptions happen in a sub-call, they "bubble up" (i.e. exceptions are rethrown) automatically. Exceptions to this rule are ``send``
and the low-level functions ``call``, ``delegatecall`` and ``callcode`` -- those return ``false`` in case
of an exception instead of "bubbling up".