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.156 -- Release Build+59006cef9614396d8b79971beebc1091829bcfe4
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