Exception: SourceHasBeenChangedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/undertexter/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(error, url) ⇒ SourceHasBeenChangedError

Returns a new instance of SourceHasBeenChangedError.



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/undertexter/error.rb', line 2

def initialize(error, url)
  super <<-END_RUBY
    \nHi,
    
    It looks like an error has occurred.
    
    Please report it on the Github issue tracker (link below).
    https://github.com/oleander/Undertexter/issues
    
    Here is the error:
    
    \t #{error.message}
    \t #{error.backtrace.first}
    \t #{url}
    
    Thanks for using Undertexter!\n
  END_RUBY
end