Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Instrument Control
NomadGUI
Commits
444c1bb0
Commit
444c1bb0
authored
Jan 17, 2022
by
helene ortiz
Browse files
Bug fixed in Variables plugin
parent
47a287f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/fr/ill/ics/client/control/plugin/setup/VariablesControllerSetupPlugin.java
View file @
444c1bb0
...
...
@@ -104,9 +104,12 @@ public class VariablesControllerSetupPlugin extends ClientControllerSetupPlugin
return
new
VariableModificationResult
(
DISABLED_VARIABLE_WARNING
,
e
.
getMessage
());
}
catch
(
VariableExistsException
e
)
{
return
new
VariableModificationResult
(
ALREADY_EXIST_EXCEPTION
,
e
.
getMessage
());
// should not happen because caught before
}
catch
(
Throwable
e
)
{
// Should not happen.
e
.
printStackTrace
();
}
catch
(
NoSuchVariableException
e
)
{
return
new
VariableModificationResult
(
NO_SUCH_VARIABLE_EXCEPTION
,
e
.
getMessage
());
}
catch
(
InvalidExpressionException
e
)
{
return
new
VariableModificationResult
(
INVALID_EXPRESSION_EXCEPTION
,
e
.
getMessage
());
}
catch
(
UnremovableVariableException
e
)
{
return
new
VariableModificationResult
(
UNREMOVABLE_VARIABLE_EXCEPTION
,
e
.
getMessage
());
}
return
new
VariableModificationResult
(
VARIABLE_CREATION_OK
,
""
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment