Exception: Mashery::ValidationException

Inherits:
Exception
  • Object
show all
Defined in:
lib/mashery/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Exception

create

Constructor Details

#initialize(errs = {}) ⇒ ValidationException

Returns a new instance of ValidationException.



23
24
25
# File 'lib/mashery/exceptions.rb', line 23

def initialize(errs= {})
  @errors = errs
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



22
23
24
# File 'lib/mashery/exceptions.rb', line 22

def errors
  @errors
end