Exception: Vial::ValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/vial/validator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, details) ⇒ ValidationError

Returns a new instance of ValidationError.



7
8
9
10
11
# File 'lib/vial/validator.rb', line 7

def initialize(type, details)
  @type = type
  @details = details
  super(build_message)
end

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details.



5
6
7
# File 'lib/vial/validator.rb', line 5

def details
  @details
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/vial/validator.rb', line 5

def type
  @type
end