Sha256: d835289ab51d5b9ace456bcbb98af8cf9ae88760b86adc8264fb2ca77b925fdd

Contents?: true

Size: 364 Bytes

Versions: 7

Compression:

Stored size: 364 Bytes

Contents

module ComfortableMexicanSofa
  
  class Error < StandardError
  end
  
  class MissingPage < ComfortableMexicanSofa::Error
    def initialize(path)
      super "Cannot find CMS page at #{path}"
    end
  end
  
  class MissingLayout < ComfortableMexicanSofa::Error
    def initialize(slug)
      super "Cannot find CMS layout with slug: #{slug}"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.5.10 lib/comfortable_mexican_sofa/error.rb
comfortable_mexican_sofa-1.5.9 lib/comfortable_mexican_sofa/error.rb
comfortable_mexican_sofa-1.5.8 lib/comfortable_mexican_sofa/error.rb
comfortable_mexican_sofa-1.5.7 lib/comfortable_mexican_sofa/error.rb
comfortable_mexican_sofa-1.5.6 lib/comfortable_mexican_sofa/error.rb
comfortable_mexican_sofa-1.5.5 lib/comfortable_mexican_sofa/error.rb
comfortable_mexican_sofa-1.5.4 lib/comfortable_mexican_sofa/error.rb