Sha256: 5cfbdbaad683dbc2126a3ac1453195692d9700c0deb6fc7285d39efe4e1967ae
Contents?: true
Size: 663 Bytes
Versions: 1
Compression:
Stored size: 663 Bytes
Contents
module Dry 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 |
---|---|
dry-view-0.7.0 | lib/dry/view/errors.rb |