Files
GridFire/src/include/gridfire/exceptions/error_solver.h
Emily Boudreaux acc71ba12e refactor(exceptions): All exceptions are derived from GridFireError
Now all GridFire exceptions are derived from the base GridFireError,
this allows for more clean handling of various exception cases
2025-11-21 14:26:24 -05:00

30 lines
747 B
C++

#pragma once
#include "gridfire/exceptions/gridfire_exception.h"
namespace gridfire::exceptions {
class SolverError : GridFireError {
using GridFireError::GridFireError;
};
class SingularJacobianError final : public SolverError {
using SolverError::SolverError;
};
class IllConditionedJacobianError final : public SolverError {
using SolverError::SolverError;
};
class SUNDIALSError : public SolverError {
using SolverError::SolverError;
};
class CVODESolverFailureError final : public SUNDIALSError {
using SUNDIALSError::SUNDIALSError;
};
class KINSolSolverFailureError final : public SUNDIALSError {
using SUNDIALSError::SUNDIALSError;
};
}