Now all GridFire exceptions are derived from the base GridFireError, this allows for more clean handling of various exception cases
30 lines
747 B
C++
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;
|
|
};
|
|
|
|
} |