Sha256: 11d8fdb703ff4ca28ba7d3361884d6b8312dba46685cab3b774c99144c42ae25
Contents?: true
Size: 488 Bytes
Versions: 3
Compression:
Stored size: 488 Bytes
Contents
module Knj::Errors class Notice < StandardError; end class NotFound < StandardError; end class InvalidData < StandardError; end class Retry < StandardError; end class NoAccess < StandardError; end def self.error_str(err, args = {}) if args[:html] str += "<b>#{err.class.name}</b>: #{err.message}<br />\n<br />\n" str += err.backtrace.join("<br />\n") else str = "#{err.class.name}: #{err.message}\n\n" str += err.backtrace.join("\n") end return str end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
knjrbfw-0.0.7 | lib/knj/errors.rb |
knjrbfw-0.0.4 | lib/knj/errors.rb |
knjrbfw-0.0.3 | lib/knj/errors.rb |