Table of Contents

Documentation / commands/ICommandResult

commands/ICommandResult

Interfaces

ICommandResult<TResponse>

Defines the result from executing commands.

Type Parameters

TResponse = object

Properties

correlationId

readonly correlationId: Guid

Gets the correlation identifier associated with the executed command.

Defined in

commands/ICommandResult.ts:14

exceptionMessages

readonly exceptionMessages: string[]

Gets any exception messages that might have occurred.

Defined in

commands/ICommandResult.ts:44

exceptionStackTrace

readonly exceptionStackTrace: string

Gets the stack trace if there was an exception.

Defined in

commands/ICommandResult.ts:49

hasExceptions

readonly hasExceptions: boolean

Gets whether or not there are any exceptions that occurred.

Defined in

commands/ICommandResult.ts:34

isAuthorized

readonly isAuthorized: boolean

Gets whether or not the command was authorized to execute.

Defined in

commands/ICommandResult.ts:24

isSuccess

readonly isSuccess: boolean

Gets whether or not the command executed successfully.

Defined in

commands/ICommandResult.ts:19

isValid

readonly isValid: boolean

Gets whether or not the command is valid.

Defined in

commands/ICommandResult.ts:29

response?

readonly optional response: TResponse

Gets the response from the command, if any.

Defined in

commands/ICommandResult.ts:54

validationResults

readonly validationResults: ValidationResult[]

Gets any validation errors. If this collection is empty, there are errors.

Defined in

commands/ICommandResult.ts:39