Exception: HTM::ValidationError

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

Overview

Raised when input validation fails

Common causes:

  • Empty or nil content for remember()

  • Content exceeding maximum size limit

  • Invalid tag format

  • Invalid recall strategy

  • Invalid timeframe format

Examples:

htm.remember("")  # => raises ValidationError
htm.remember("x", tags: ["INVALID!"])  # => raises ValidationError