Exception: LpSolver::Error

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

Overview

The base exception class for all LpSolver errors.

All LpSolver-specific exceptions inherit from this class.

Examples:

Rescuing LpSolver errors

begin
  model.solve
rescue LpSolver::Error => e
  puts "Solver error: #{e.message}"
end

Direct Known Subclasses

NotFoundError, SolverError