Class: Sanford::ConfigFile::NoServerError

Inherits:
InvalidError
  • Object
show all
Defined in:
lib/sanford/config_file.rb

Instance Method Summary collapse

Constructor Details

#initialize(server, path) ⇒ NoServerError

Returns a new instance of NoServerError.



67
68
69
70
71
72
73
74
# File 'lib/sanford/config_file.rb', line 67

def initialize(server, path)
  prefix = "Configuration file #{path.to_s.inspect}"
  if server
    super "#{prefix} called `run` without a Sanford::Server"
  else
    super "#{prefix} didn't call `run` with a Sanford::Server"
  end
end