Sha256: f00f527631f3996983e08dc165d5d4eed654e92c2bbccdf68d8e1805a8fa4384

Contents?: true

Size: 507 Bytes

Versions: 13

Compression:

Stored size: 507 Bytes

Contents

# frozen_string_literal: true

module Occams
  class Error < StandardError
  end

  class MissingSite < Occams::Error
    def initialize(identifier)
      super "Cannot find CMS Site with identifier: #{identifier}"
    end
  end

  class MissingLayout < Occams::Error
    def initialize(identifier)
      super "Cannot find CMS Layout with identifier: #{identifier}"
    end
  end

  class MissingPage < Occams::Error
    def initialize(path)
      super "Cannot find CMS Page at #{path}"
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
occams-1.1.0 lib/occams/error.rb
occams-1.0.8 lib/occams/error.rb
occams-1.0.7.3 lib/occams/error.rb
occams-1.0.7.2 lib/occams/error.rb
occams-1.0.7.1 lib/occams/error.rb
occams-1.0.7 lib/occams/error.rb
occams-1.0.6.1 lib/occams/error.rb
occams-1.0.6 lib/occams/error.rb
occams-1.0.5 lib/occams/error.rb
occams-1.0.4 lib/occams/error.rb
occams-1.0.3 lib/occams/error.rb
occams-1.0.2 lib/occams/error.rb
occams-1.0.1 lib/occams/error.rb