Class PositionRange::Error
In: lib/position_range/error.rb
Parent: StandardError

This Error is raised if positions are out of range.

Methods

message   new  

Attributes

from_range  [RW] 
to_range  [RW] 

Public Class methods

[Source]

    # File lib/position_range/error.rb, line 18
18:   def initialize(from_range, to_range)
19:     @from_range = from_range
20:     @to_range = to_range
21:   end

Public Instance methods

[Source]

    # File lib/position_range/error.rb, line 23
23:   def message
24:     super.to_s + ': ' + @from_range.to_s + ',' + @to_range.to_s
25:   end

[Validate]