-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into enhancement/283-revise-ide-properties
- Loading branch information
Showing
48 changed files
with
2,735 additions
and
1,750 deletions.
There are no files selected for viewing
34 changes: 18 additions & 16 deletions
34
cli/src/main/java/com/devonfw/tools/ide/cli/CliAbortException.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 |
---|---|---|
@@ -1,16 +1,18 @@ | ||
package com.devonfw.tools.ide.cli; | ||
|
||
/** | ||
* {@link CliException} that is thrown if the user aborted further processing due | ||
*/ | ||
public final class CliAbortException extends CliException { | ||
|
||
/** | ||
* The constructor. | ||
*/ | ||
public CliAbortException() { | ||
|
||
super("Aborted by end-user.", 22); | ||
} | ||
|
||
} | ||
package com.devonfw.tools.ide.cli; | ||
|
||
import com.devonfw.tools.ide.process.ProcessResult; | ||
|
||
/** | ||
* {@link CliException} that is thrown if the user aborted further processing due | ||
*/ | ||
public final class CliAbortException extends CliException { | ||
|
||
/** | ||
* The constructor. | ||
*/ | ||
public CliAbortException() { | ||
|
||
super("Aborted by end-user.", ProcessResult.ABORT); | ||
} | ||
|
||
} |
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
28 changes: 28 additions & 0 deletions
28
cli/src/main/java/com/devonfw/tools/ide/cli/CliOfflineException.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,28 @@ | ||
package com.devonfw.tools.ide.cli; | ||
|
||
import com.devonfw.tools.ide.process.ProcessResult; | ||
|
||
/** | ||
* {@link CliException} that is thrown if further processing requires network but the user if offline. | ||
*/ | ||
public final class CliOfflineException extends CliException { | ||
|
||
/** | ||
* The constructor. | ||
*/ | ||
public CliOfflineException() { | ||
|
||
super("You are offline but network connection is required to perform the operation.", ProcessResult.OFFLINE); | ||
} | ||
|
||
/** | ||
* The constructor. | ||
* | ||
* @param message the {@link #getMessage() message}. | ||
*/ | ||
public CliOfflineException(String message) { | ||
|
||
super(message, ProcessResult.OFFLINE); | ||
} | ||
|
||
} |
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
Oops, something went wrong.