Sha256: d2e3176d336651a10f4dfc68d30b4907300753c967fb0cef3d17a9d8e2f5c1e1

Contents?: true

Size: 574 Bytes

Versions: 1

Compression:

Stored size: 574 Bytes

Contents

# frozen_string_literal: true

module ComfortableMediaSurfer
  class Error < StandardError
  end

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

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

  class MissingPage < ComfortableMediaSurfer::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
comfortable_media_surfer-3.0.0 lib/comfortable_media_surfer/error.rb