You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Bridges/Constraint/function_conversion.jl
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,9 @@ function MOI.get(
16
16
return MOI.get(model, attr, bridge.constraint)
17
17
else
18
18
throw(
19
-
ArgumentError(
20
-
"Bridge of type `$(typeof(bridge))` does not support accessing the attribute `$attr` because `MOIB.Constraint.invariant_under_function_conversion($attr)` returns `false`.",
19
+
MOI.UnsupportedAttribute(
20
+
attr,
21
+
"Bridge of type `$(typeof(bridge))` does not support getting the attribute `$attr` because `MOIB.Constraint.invariant_under_function_conversion($attr)` returns `false`.",
21
22
),
22
23
)
23
24
end
@@ -40,7 +41,8 @@ function MOI.set(
40
41
)
41
42
if!invariant_under_function_conversion(attr)
42
43
throw(
43
-
ArgumentError(
44
+
MOI.UnsupportedAttribute(
45
+
attr,
44
46
"Bridge of type `$(typeof(bridge))` does not support setting the attribute `$attr` because `MOIB.Constraint.invariant_under_function_conversion($attr)` returns `false`.",
0 commit comments