Sha256: 651b294d5670230d959b710eeec05f00c8ee6cd4a9505a121eb5f8bbaab92f60

Contents?: true

Size: 503 Bytes

Versions: 3

Compression:

Stored size: 503 Bytes

Contents

module ComfyPress
  
  class Error < StandardError
  end
  
  class MissingSite < ComfyPress::Error
    def initialize(identifier)
      super "Cannot find CMS Site with identifier: #{identifier}"
    end
  end
  
  class MissingLayout < ComfyPress::Error
    def initialize(identifier)
      super "Cannot find CMS Layout with identifier: #{identifier}"
    end
  end
  
  class MissingPage < ComfyPress::Error
    def initialize(path)
      super "Cannot find CMS Page at #{path}"
    end
  end
  
end

Version data entries

3 entries across 2 versions & 1 rubygems

Version Path
comfypress-0.1.4 db/lib/comfypress/error.rb
comfypress-0.1.4 lib/comfypress/error.rb
comfypress-0.1.3 lib/comfypress/error.rb