Coverage for lpsolvers / exceptions.py: 100%

3 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-04-20 15:19 +0000

1#!/usr/bin/env python 

2# -*- coding: utf-8 -*- 

3# 

4# SPDX-License-Identifier: LGPL-3.0-or-later 

5# Copyright (C) 2016-2022 Stéphane Caron 

6 

7"""Exceptions.""" 

8 

9 

10class LPSolverException(Exception): 

11 """Base class for lpsolvers exception.""" 

12 

13 

14class SolverNotFound(LPSolverException): 

15 """Exception raised when a requested solver is not found.""" 

16 

17 

18class NoSolverSelected(LPSolverException): 

19 """Exception raised when the `solver` keyword argument is not set."""