Skip to content

ExtensionError #269

@ocots

Description

@ocots

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions