Exception: Dotbot::DotbotError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dotbot/errors.rb

Direct Known Subclasses

DoesNotExistError, GitError, NoConfigError

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ DotbotError

Returns a new instance of DotbotError.



4
5
6
7
# File 'lib/dotbot/errors.rb', line 4

def initialize(message=nil)
  STDERR.puts help_text(message)
  super
end

Instance Method Details

#help_text(message = nil) ⇒ Object



9
10
11
# File 'lib/dotbot/errors.rb', line 9

def help_text(message=nil)
  "A generic Dotbot Error has occurred."
end