aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/manager
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2011-04-03 19:10:06 +0300
committerKostis Sagonas <[email protected]>2011-04-03 19:10:06 +0300
commit7354ffb0e5cde599fcad776febd33cdb234f30a7 (patch)
treedc40d223aee531ff8f74f452d1574fb43605584c /lib/snmp/src/manager
parent745c4af40595c8b029c2d61ddbe22c6d12950236 (diff)
downloadotp-7354ffb0e5cde599fcad776febd33cdb234f30a7.tar.gz
otp-7354ffb0e5cde599fcad776febd33cdb234f30a7.tar.bz2
otp-7354ffb0e5cde599fcad776febd33cdb234f30a7.zip
Add specs for functions that do not return
Diffstat (limited to 'lib/snmp/src/manager')
-rw-r--r--lib/snmp/src/manager/snmpm_usm.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/snmp/src/manager/snmpm_usm.erl b/lib/snmp/src/manager/snmpm_usm.erl
index 449127844a..ef2070a90e 100644
--- a/lib/snmp/src/manager/snmpm_usm.erl
+++ b/lib/snmp/src/manager/snmpm_usm.erl
@@ -476,14 +476,19 @@ set_engine_latest_time(SnmpEngineID, EngineTime) ->
%%-----------------------------------------------------------------
%% Utility functions
%%-----------------------------------------------------------------
+-spec error(term()) -> no_return().
error(Reason) ->
throw({error, Reason}).
+-spec error(term(), term()) -> no_return().
error(Reason, ErrorInfo) ->
throw({error, Reason, ErrorInfo}).
+-spec error(term(), term(), term()) -> no_return().
error(Variable, Oid, SecName) ->
error(Variable, Oid, SecName, []).
+
+-spec error(term(), term(), term(), [term()]) -> no_return().
error(Variable, Oid, SecName, Opts) ->
Val = inc(Variable),
ErrorInfo = {#varbind{oid = Oid,