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
exceptionMessages
readonly
exceptionMessages:string
[]
Gets any exception messages that might have occurred.
Defined in
exceptionStackTrace
readonly
exceptionStackTrace:string
Gets the stack trace if there was an exception.
Defined in
hasExceptions
readonly
hasExceptions:boolean
Gets whether or not there are any exceptions that occurred.
Defined in
isAuthorized
readonly
isAuthorized:boolean
Gets whether or not the command was authorized to execute.
Defined in
isSuccess
readonly
isSuccess:boolean
Gets whether or not the command executed successfully.
Defined in
isValid
readonly
isValid:boolean
Gets whether or not the command is valid.
Defined in
response?
readonly
optional
response:TResponse
Gets the response from the command, if any.
Defined in
validationResults
readonly
validationResults:ValidationResult
[]
Gets any validation errors. If this collection is empty, there are errors.