Exception: Structish::ValidationError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Structish::ValidationError
- Defined in:
- lib/structish/validation_error.rb
Instance Method Summary collapse
-
#initialize(message, klass) ⇒ ValidationError
constructor
A new instance of ValidationError.
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(, klass) super("#{} in class #{klass.to_s}") set_backtrace(caller) if Config.show_full_trace? puts self.backtrace end end |