Reput the ExtensionError exception when it should be:
|
function export_ocp_solution(::JLD2Tag, ::AbstractSolution; filename::String) |
|
throw(CTModels.Exceptions.IncorrectArgument(:JLD2)) |
|
end |
|
|
|
function import_ocp_solution(::JLD2Tag, ::AbstractModel; filename::String) |
|
throw(CTModels.Exceptions.IncorrectArgument(:JLD2)) |
|
end |
|
|
|
function export_ocp_solution(::JSON3Tag, ::AbstractSolution; filename::String) |
|
throw(CTModels.Exceptions.IncorrectArgument(:JSON)) |
|
end |
|
|
|
function import_ocp_solution(::JSON3Tag, ::AbstractModel; filename::String) |
|
throw(CTModels.Exceptions.IncorrectArgument(:JSON)) |
|
end |
Reput the ExtensionError exception when it should be:
CTModels.jl/src/Serialization/export_import.jl
Lines 5 to 19 in e08eba4