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