Exception: MiniSanity::Error
- Defined in:
- lib/mini_sanity/error.rb
Instance Method Summary collapse
-
#initialize(message, details = {}) ⇒ Error
constructor
A new instance of Error.
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(, details = {}) super([ , *details.compact.map{|name, value| "#{name}:\n #{value}" } ].join("\n\n")) end |