Sha256: c0d3b89f0d7e419433ccf286a5d99a7eee259a0bee3e0209456b30c2d3a289d1
Contents?: true
Size: 698 Bytes
Versions: 1
Compression:
Stored size: 698 Bytes
Contents
# frozen_string_literal: true module Hanami class View # Error raised when critical settings are not configured # # @api private class UndefinedConfigError < StandardError def initialize(key) super("no +#{key}+ configured") end end # Error raised when template could not be found within a view's configured # paths # # @api private class TemplateNotFoundError < StandardError def initialize(template_name, lookup_paths) msg = [ "Template +#{template_name}+ could not be found in paths:", lookup_paths.map { |path| " - #{path}" } ].join("\n\n") super(msg) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hanami-view-2.0.0.alpha2 | lib/hanami/view/errors.rb |