diff options
author | chriseth <chris@ethereum.org> | 2018-01-03 22:30:01 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-04-12 19:09:38 +0800 |
commit | 344a388d4461abd7369ea44b123f5afe549dc8f7 (patch) | |
tree | 46af2bf9ec5fa6aee5a0fafff3c01a50f79ffd51 /docs/units-and-global-variables.rst | |
parent | aa715f8759934ac68b76a2bef84c460b68be636a (diff) | |
download | dexon-solidity-344a388d4461abd7369ea44b123f5afe549dc8f7.tar dexon-solidity-344a388d4461abd7369ea44b123f5afe549dc8f7.tar.gz dexon-solidity-344a388d4461abd7369ea44b123f5afe549dc8f7.tar.bz2 dexon-solidity-344a388d4461abd7369ea44b123f5afe549dc8f7.tar.lz dexon-solidity-344a388d4461abd7369ea44b123f5afe549dc8f7.tar.xz dexon-solidity-344a388d4461abd7369ea44b123f5afe549dc8f7.tar.zst dexon-solidity-344a388d4461abd7369ea44b123f5afe549dc8f7.zip |
Update documentation.
Diffstat (limited to 'docs/units-and-global-variables.rst')
-rw-r--r-- | docs/units-and-global-variables.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/units-and-global-variables.rst b/docs/units-and-global-variables.rst index aad00ba2..9d5821d5 100644 --- a/docs/units-and-global-variables.rst +++ b/docs/units-and-global-variables.rst @@ -99,6 +99,8 @@ Error Handling throws if the condition is not met - to be used for internal errors. ``require(bool condition)``: throws if the condition is not met - to be used for errors in inputs or external components. +``require(bool condition, string message)``: + throws if the condition is not met - to be used for errors in inputs or external components. Also provides an error message. ``revert()``: abort execution and revert state changes ``revert(string reason)``: |