Gemstone Common Library
Show/Hide TOC

# CommandException(String, Boolean, Int32, Exception) Constructor

Creates a new CommandException with the specified parameters.

## Definition

Namespace: Gemstone.Console
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.163 -- Release Build+087b6813ba03894bf4bfe2466a2a63a9702d9bb9
C#
View Source Request Example

    public CommandException(
    	string message,
    	bool processCompleted,
    	int exitCode,
    	Exception? innerException = null
    )

VB
View Source Request Example

    Public Sub New (
    	message As String,
    	processCompleted As Boolean,
    	exitCode As Integer,
    	Optional innerException As Exception = Nothing
    )

C++
View Source Request Example

    public:
    CommandException(
    	String^ message,
    	bool processCompleted,
    	int exitCode,
    	Exception^ innerException = nullptr
    )

JavaScript
View Source Request Example

    Gemstone.Console.CommandException = function(message, processCompleted, exitCode, innerException);

#### Parameters

message String
  The error message that explains the reason for the exception.
processCompleted Boolean
  Flag that determines if the source of command exception completed processing.
exitCode Int32
  Exit code of command process, assuming process successfully completed.
innerException Exception (Optional)
  The exception that is the cause of the current exception, or a null reference if no inner exception is specified.

## See Also

#### Reference

CommandException Class
CommandException Overload
Gemstone.Console Namespace