Exception: Sashite::Cell::Errors::Argument

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/sashite/cell/errors/argument.rb,
lib/sashite/cell/errors/argument/messages.rb

Overview

Custom error class for CELL parsing and validation failures.

Inherits from ArgumentError to maintain semantic meaning while allowing specific rescue of CELL-related errors.

Examples:

Rescuing specific CELL errors

begin
  Sashite::Cell.parse("invalid")
rescue Sashite::Cell::Errors::Argument => e
  puts "CELL error: #{e.message}"
end

Rescuing as ArgumentError

begin
  Sashite::Cell.parse("invalid")
rescue ArgumentError => e
  puts "Argument error: #{e.message}"
end

Defined Under Namespace

Modules: Messages