Skip to content

Commit f6af87f

Browse files
feat: add NotPossibleError
1 parent 8483672 commit f6af87f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/utils.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,3 +1050,11 @@ function flatten_equations(eqs::Vector{Equation})
10501050
end
10511051

10521052
const JumpType = Union{VariableRateJump, ConstantRateJump, MassActionJump}
1053+
1054+
struct NotPossibleError <: Exception end
1055+
1056+
function Base.showerror(io::IO, ::NotPossibleError)
1057+
print(io, """
1058+
This should not be possible. Please open an issue in ModelingToolkit.jl with an MWE.
1059+
""")
1060+
end

0 commit comments

Comments
 (0)