Class | Nanoc3::Errors::DataNotYetAvailable |
In: |
lib/nanoc3/base/errors.rb
|
Parent: | Generic |
Error that is raised when data is requested when the data is not yet available (possibly due to a missing {Nanoc3::Site#load_data}).
@param [String] type The name of the data type that is not yet available. For example: `"site"`, `"items"`.
@param [Boolean] plural True if the given type is plural, false otherwise. This only has an effect on the exception message. For example, if the given type is `"site"`, plural would be `false`; if the given type is `"items"`, plural would be `true`.