Sha256: 8c9c03582f5d5e2f9066a4cc82eb16c085ee6b41ce9a7ec5a38225cba300a281
Contents?: true
Size: 526 Bytes
Versions: 2
Compression:
Stored size: 526 Bytes
Contents
module Micron module Util module Ex # Utility method for converting Exceptions to Strings # # @param [Exception] ex # @param [Boolean] include_backtrace # # @return [String] def dump_ex(ex, include_backtrace=false) name = ex.respond_to?(:name) ? ex.name : ex.class.to_s s = "<#{name}> #{ex.message}" if include_backtrace then s += "\n " + filter_backtrace(ex.backtrace).join("\n ") end return s end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
micron-0.5.1 | lib/micron/util/ex.rb |
micron-0.5.0 | lib/micron/util/ex.rb |