X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=doc%2Fclasses%2FMCollective%2FCodedError.html;fp=doc%2Fclasses%2FMCollective%2FCodedError.html;h=ef96da6c859c963713b7c85facf73bc1596407f9;hb=d1f1649ba43c5cbc43c4beb2380096ba051d646a;hp=0000000000000000000000000000000000000000;hpb=8a3fe7daeecccf43dd71c59371c5005400d35101;p=packages%2Fprecise%2Fmcollective.git diff --git a/doc/classes/MCollective/CodedError.html b/doc/classes/MCollective/CodedError.html new file mode 100644 index 0000000..ef96da6 --- /dev/null +++ b/doc/classes/MCollective/CodedError.html @@ -0,0 +1,232 @@ + + + + +
+Class | +MCollective::CodedError | +
In: | +
+
+ lib/mcollective/exception.rb
+
+ + |
+
Parent: | ++ RuntimeError + | +
args | +[R] | ++ |
code | +[R] | ++ |
default | +[R] | ++ |
log_level | +[R] | ++ |
+ # File lib/mcollective/exception.rb, line 5 + 5: def initialize(msgid, default, level=:debug, args={}) + 6: @code = msgid + 7: @log_level = level + 8: @args = args + 9: @default = default +10: +11: msg = Util.t(@code, {:default => default}.merge(@args)) +12: +13: super(msg) +14: end ++
+ # File lib/mcollective/exception.rb, line 21 +21: def log(level, log_backtrace=false) +22: Log.logexception(@code, level, self, log_backtrace) +23: end ++