Exception: Shojiku::UsageError

Inherits:
Error
  • Object
show all
Defined in:
lib/shojiku/errors.rb

Overview

The caller passed something this API cannot accept — a template name that is not a String, a nil where a value is required, both forms of the same material at once, an argument past a hard cap the C library documents, or an entrance this client's Lockdown disables. Programmer misuse, so it raises.

A BLANK template name is deliberately not in that list: an empty string can arrive straight from a form field, so it comes back as a refused request like every other bad name.