Exception: MiniSanity::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/mini_sanity/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(message, details = {}) ⇒ Error

Returns a new instance of Error.



4
5
6
7
8
9
# File 'lib/mini_sanity/error.rb', line 4

def initialize(message, details = {})
  super([
    message,
    *details.compact.map{|name, value| "#{name}:\n  #{value}" }
  ].join("\n\n"))
end