Sha256: 7c740f29c46740d555e51a083ce92b0410df34110d714497b11f654b8b1ac310
Contents?: true
Size: 646 Bytes
Versions: 1
Compression:
Stored size: 646 Bytes
Contents
module Parklife Error = Class.new(StandardError) BuildDirNotDefinedError = Class.new(Error) RackAppNotDefinedError = Class.new(Error) class HTTPError < Error def initialize(status, path) @status = status @path = path end def message %Q(#{@status} response from path "#{@path}") end end class ParkfileLoadError < Error def initialize(path) @path = path end def message %Q(Cannot load Parkfile "#{@path}") end end class RailsNotDefinedError < Error def message 'Expected Rails to be defined, require config/environment before parklife.' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
parklife-0.4.0 | lib/parklife/errors.rb |