Exception: Rhales::HydrationCollisionError

Inherits:
Error
  • Object
show all
Defined in:
lib/rhales/errors/hydration_collision_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(window_attribute, first_path, conflict_path) ⇒ HydrationCollisionError

Returns a new instance of HydrationCollisionError.



7
8
9
10
11
12
13
# File 'lib/rhales/errors/hydration_collision_error.rb', line 7

def initialize(window_attribute, first_path, conflict_path)
  @window_attribute = window_attribute
  @first_path       = first_path
  @conflict_path    = conflict_path

  super(build_message)
end

Instance Attribute Details

#conflict_pathObject (readonly)

Returns the value of attribute conflict_path.



5
6
7
# File 'lib/rhales/errors/hydration_collision_error.rb', line 5

def conflict_path
  @conflict_path
end

#first_pathObject (readonly)

Returns the value of attribute first_path.



5
6
7
# File 'lib/rhales/errors/hydration_collision_error.rb', line 5

def first_path
  @first_path
end

#window_attributeObject (readonly)

Returns the value of attribute window_attribute.



5
6
7
# File 'lib/rhales/errors/hydration_collision_error.rb', line 5

def window_attribute
  @window_attribute
end

Instance Method Details

#messageObject



15
16
17
# File 'lib/rhales/errors/hydration_collision_error.rb', line 15

def message
  build_message
end