Sha256: 13d30dbd01b69c202b49a81b58a42a8523017b71f649fad2f940175e3b45783b

Contents?: true

Size: 515 Bytes

Versions: 1

Compression:

Stored size: 515 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

1 entries across 1 versions & 1 rubygems

Version Path
occams-1.0.0 lib/occams/error.rb