Sha256: d5600220bb7cc225390da02b6bee2fd4155a0240c32b6a12fa6b7f76ef8ab4dc

Contents?: true

Size: 422 Bytes

Versions: 8

Compression:

Stored size: 422 Bytes

Contents

# frozen_string_literal: true

module Maglev
  module Errors
    class NotAuthorized < StandardError; end
    class UnknownSection < StandardError; end

    class UnknownSetting < StandardError
      def initialize(section_id, block_id, setting_id)
        key = [section_id, block_id].compact.join('.')
        super("[#{key}] The #{setting_id} setting is undeclared OR its type is unknown.")
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
maglevcms-1.7.3 lib/maglev/errors.rb
maglevcms-1.7.2 lib/maglev/errors.rb
maglevcms-1.7.1 lib/maglev/errors.rb
maglevcms-1.7.0 lib/maglev/errors.rb
maglevcms-1.6.1 lib/maglev/errors.rb
maglevcms-1.6.0 lib/maglev/errors.rb
maglevcms-1.5.1 lib/maglev/errors.rb
maglevcms-1.4.0 lib/maglev/errors.rb