Sha256: 3073c4e8f4b25992e18d55b7645f9c157c0b732aecb8a2b636eb4d151ecc8cdc

Contents?: true

Size: 1.54 KB

Versions: 5

Compression:

Stored size: 1.54 KB

Contents

# frozen_string_literal: true

module Thinreports
  module BasicReport
    module Errors
      class Basic < ::StandardError
      end

      class UnknownShapeStyleName < Basic
        def initialize(style, availables)
          super("The specified style name, '#{style}', cannot be used. " \
                "The available styles are #{availables.map { |s| ":#{s}" }.join(', ')}.")
        end
      end

      class UnknownShapeType < Basic
      end

      class UnknownFormatterType < Basic
      end

      class LayoutFileNotFound < Basic
      end

      class FontFileNotFound < Basic
      end

      class NoRegisteredLayoutFound < Basic
      end

      class UnknownItemId < Basic
        def initialize(id, item_type = 'Basic')
          super("The layout does not have a #{item_type} Item with id '#{id}'.")
        end
      end

      class DisabledListSection < Basic
        def initialize(section)
          super("The #{section} section is disabled.")
        end
      end

      class UnknownLayoutId < Basic
      end

      class UnsupportedColorName < Basic
      end

      class InvalidLayoutFormat < Basic
      end

      class IncompatibleLayoutFormat < Basic
        def initialize(filename, fileversion, required_rules)
          super("Generator #{Thinreports::VERSION} can not be built this file, " \
                "'#{File.basename(filename)}'. " \
                "This file is updated in the Editor of version '#{fileversion}', " \
                "but Generator requires version #{required_rules}.")
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thinreports-0.14.2 lib/thinreports/basic_report/core/errors.rb
thinreports-0.14.1 lib/thinreports/basic_report/core/errors.rb
thinreports-0.14.0 lib/thinreports/basic_report/core/errors.rb
thinreports-0.13.1 lib/thinreports/basic_report/core/errors.rb
thinreports-0.13.0 lib/thinreports/basic_report/core/errors.rb