Skip to main content

WrapResponse

The WrapResponse class is a specialized version of WrapResponse<TResult> with a generic type of object. It extends WrapResponse<object> to represent a wrapped response when the result type is not predetermined.

Properties

NameDescription
SuccessIndicates the status of the response. true if the operation was successful; otherwise, false.
InternalMessageAn internal message associated with the response, intended for logging or internal tracking.
ValidationErrorInfosA list of validation error information objects that describe validation issues encountered during the operation.
ExceptionAn exception object representing any error that occurred during the operation.
ResultContains the result of the operation, with the type specified by TResult.
MessageA public message associated with the response, intended for external use or display.

Generic Types

NameDescription
TResultGeneric type of result property.