Exception: Structish::ValidationError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/structish/validation_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(message, klass) ⇒ ValidationError

Returns a new instance of ValidationError.



3
4
5
6
7
8
9
# File 'lib/structish/validation_error.rb', line 3

def initialize(message, klass)
  super("#{message} in class #{klass.to_s}")
  set_backtrace(caller)
  if Config.show_full_trace?
    puts self.backtrace
  end
end