Exception: Loca::Error::Base

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

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ Base

Returns a new instance of Base.



6
7
8
9
10
# File 'lib/loca/error.rb', line 6

def initialize(message)
  # To get the message in red
  $stderr.puts message.red
  @message = message
end