Class: Herb::Engine::ValidationErrors::ValidationError

Inherits:
Object
  • Object
show all
Defined in:
lib/herb/engine/validation_errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, location, message) ⇒ ValidationError

Returns a new instance of ValidationError.



46
47
48
49
50
# File 'lib/herb/engine/validation_errors.rb', line 46

def initialize(type, location, message)
  @type = type
  @location = location
  @message = message
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



44
45
46
# File 'lib/herb/engine/validation_errors.rb', line 44

def location
  @location
end

#messageObject (readonly)

Returns the value of attribute message.



44
45
46
# File 'lib/herb/engine/validation_errors.rb', line 44

def message
  @message
end

#typeObject (readonly)

Returns the value of attribute type.



44
45
46
# File 'lib/herb/engine/validation_errors.rb', line 44

def type
  @type
end