-
-
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.
- Loading branch information
Showing
7 changed files
with
135 additions
and
16 deletions.
There are no files selected for viewing
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
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
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
23 changes: 23 additions & 0 deletions
23
...terside/topics/technical/CliCommandException.CliCommandException(string,int).md
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,23 @@ | ||
#### [MasterCommander](MasterCommander.md 'MasterCommander') | ||
### [MasterCommander.Core.Exceptions](MasterCommander.md#MasterCommander.Core.Exceptions 'MasterCommander.Core.Exceptions').[CliCommandException](CliCommandException.md 'MasterCommander.Core.Exceptions.CliCommandException') | ||
|
||
## CliCommandException(string, int) Constructor | ||
|
||
Initializes a new instance of the [CliCommandException](CliCommandException.md 'MasterCommander.Core.Exceptions.CliCommandException') class. | ||
|
||
```csharp | ||
public CliCommandException(string? message, int exitCode); | ||
``` | ||
#### Parameters | ||
|
||
<a name='MasterCommander.Core.Exceptions.CliCommandException.CliCommandException(string,int).message'></a> | ||
|
||
`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') | ||
|
||
The error message that explains the reason for the exception. | ||
|
||
<a name='MasterCommander.Core.Exceptions.CliCommandException.CliCommandException(string,int).exitCode'></a> | ||
|
||
`exitCode` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') | ||
|
||
The exit code returned by the CLI command. |
25 changes: 25 additions & 0 deletions
25
docs/site/Writerside/topics/technical/CliCommandException.ExitCode.topic
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,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE topic SYSTEM "https://resources.jetbrains.com/writerside/1.0/xhtml-entities.dtd"> | ||
<topic xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/topic.v2.xsd" | ||
id="CliCommandException.ExitCode" | ||
title="CliCommandException.ExitCode"> | ||
|
||
<chapter title="MasterCommander" id="mastercommander"> | ||
</chapter> | ||
<chapter title="MasterCommander.Core.Exceptions.CliCommandException" | ||
id="mastercommander-core-exceptions-clicommandexception"> | ||
</chapter> | ||
<chapter title="CliCommandException.ExitCode Property" id="clicommandexception-exitcode-property"> | ||
<p>Gets the exit code associated with the CLI command failure.</p> | ||
|
||
<code-block lang="c#"> | ||
public int ExitCode { get; } | ||
</code-block> | ||
<chapter title="Property Value" id="property-value"> | ||
<p><a href="https://docs.microsoft.com/en-us/dotnet/api/System.Int32" | ||
summary="System.Int32">System.Int32</a></p> | ||
</chapter> | ||
</chapter> | ||
|
||
</topic> |
20 changes: 20 additions & 0 deletions
20
docs/site/Writerside/topics/technical/CliCommandException.md
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,20 @@ | ||
#### [MasterCommander](MasterCommander.md 'MasterCommander') | ||
### [MasterCommander.Core.Exceptions](MasterCommander.md#MasterCommander.Core.Exceptions 'MasterCommander.Core.Exceptions') | ||
|
||
## CliCommandException Class | ||
|
||
Represents an exception related to CLI command execution failures, including the associated exit code. | ||
|
||
```csharp | ||
public class CliCommandException : System.Exception | ||
``` | ||
|
||
Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') 🡒 CliCommandException | ||
| Constructors | | | ||
| :--- | :--- | | ||
| [CliCommandException(string, int)](CliCommandException.CliCommandException(string,int).md 'MasterCommander.Core.Exceptions.CliCommandException.CliCommandException(string, int)') | Initializes a new instance of the [CliCommandException](CliCommandException.md 'MasterCommander.Core.Exceptions.CliCommandException') class. | | ||
|
||
| Properties | | | ||
| :--- | :--- | | ||
| [ExitCode](CliCommandException.ExitCode.topic 'MasterCommander.Core.Exceptions.CliCommandException.ExitCode') | Gets the exit code associated with the CLI command failure. | |
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