aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/doc/src/gen_statem.xml
diff options
context:
space:
mode:
authorZandra Norman <[email protected]>2017-01-23 17:06:48 +0100
committerRaimo Niskanen <[email protected]>2017-04-21 16:13:29 +0200
commiteff1ee5ebf1d767d610cd6bc059e5f4dea57d2af (patch)
tree6912a1608745b8df0470e4d54552b28080af87a4 /lib/stdlib/doc/src/gen_statem.xml
parent30cae2492d8d8e927d57c0dc656ee2dfbec0a70c (diff)
downloadotp-eff1ee5ebf1d767d610cd6bc059e5f4dea57d2af.tar.gz
otp-eff1ee5ebf1d767d610cd6bc059e5f4dea57d2af.tar.bz2
otp-eff1ee5ebf1d767d610cd6bc059e5f4dea57d2af.zip
stdlib: Make gen_statem callbacks optional
Diffstat (limited to 'lib/stdlib/doc/src/gen_statem.xml')
-rw-r--r--lib/stdlib/doc/src/gen_statem.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/stdlib/doc/src/gen_statem.xml b/lib/stdlib/doc/src/gen_statem.xml
index 1b99b65e09..bc86415d28 100644
--- a/lib/stdlib/doc/src/gen_statem.xml
+++ b/lib/stdlib/doc/src/gen_statem.xml
@@ -1733,6 +1733,16 @@ handle_event(_, _, State, Data) ->
<v>Reason = term()</v>
</type>
<desc>
+ <note>
+ <p>
+ This callback is optional, so callback modules need not export it.
+ If a release upgrade/downgrade with
+ <c>Change={advanced,Extra}</c>
+ specified in the <c>.appup</c> file is made
+ when <c>code_change/4</c> is not implemented
+ the process will crash with exit reason <c>undef</c>.
+ </p>
+ </note>
<p>
This function is called by a <c>gen_statem</c> when it is to
update its internal state during a release upgrade/downgrade,