aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/manager/snmpm_usm.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-04-15 12:09:27 +0200
committerMicael Karlberg <[email protected]>2011-04-15 12:09:27 +0200
commit0dd3ff7f7e7c15e912645b1d4cc42fcef25ee29d (patch)
treec5d11f86a863b00cb651224a3125e7810e1ad52b /lib/snmp/src/manager/snmpm_usm.erl
parentf5cb2e252f789ed9fc99f638772b9292a2df7c44 (diff)
parent293cb2901b3f559c5cf50c1fc4798091edd540a0 (diff)
downloadotp-0dd3ff7f7e7c15e912645b1d4cc42fcef25ee29d.tar.gz
otp-0dd3ff7f7e7c15e912645b1d4cc42fcef25ee29d.tar.bz2
otp-0dd3ff7f7e7c15e912645b1d4cc42fcef25ee29d.zip
Merge branch 'bmk/snmp/snmp420_integration' of super:bmk_otp into bmk/snmp/snmp420_integration
Diffstat (limited to 'lib/snmp/src/manager/snmpm_usm.erl')
-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,