aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/manager
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-04-08 11:43:21 +0200
committerMicael Karlberg <[email protected]>2011-04-08 11:43:21 +0200
commit293cb2901b3f559c5cf50c1fc4798091edd540a0 (patch)
treefbe0805b21a44868f791774205a544814f006e19 /lib/snmp/src/manager
parentbb6e729795ebf3dddfcfd7182384bda59e9f6a94 (diff)
parent7354ffb0e5cde599fcad776febd33cdb234f30a7 (diff)
downloadotp-293cb2901b3f559c5cf50c1fc4798091edd540a0.tar.gz
otp-293cb2901b3f559c5cf50c1fc4798091edd540a0.tar.bz2
otp-293cb2901b3f559c5cf50c1fc4798091edd540a0.zip
Merge branch 'ks/snmp-specs' into bmk/snmp/snmp420_integration
OTP-9208
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,