forked from devonfw/IDEasy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devonfw#739: created new exception and added statement
Added a new statement that checks if IDE_ROOT == null in EnvironmentCommanlet method. If so, it throws an empty exception
- Loading branch information
1 parent
a08a986
commit 84e0250
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
cli/src/main/java/com/devonfw/tools/ide/cli/NullIdeRootException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.devonfw.tools.ide.cli; | ||
|
||
/** | ||
* {@link CliException} that is thrown if IDE_ROOT == null | ||
*/ | ||
public class NullIdeRootException extends CliException { | ||
|
||
/** | ||
* The constructor. | ||
*/ | ||
public NullIdeRootException() { | ||
|
||
super(""); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters