Exception: Sortsmith::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sortsmith.rb

Overview

Base error class for all Sortsmith-related exceptions.

This provides a namespace for any custom errors that may be raised during sorting operations, making it easier to rescue Sortsmith-specific issues without catching unrelated StandardError instances.

Examples:

Rescuing Sortsmith errors

begin
  complex_sort_operation
rescue Sortsmith::Error => e
  handle_sorting_error(e)
end

Since:

  • 0.1.0