projects/wms-framework/src/lib/dataService/operationResponse.ts
Properties |
Methods |
|
Accessors |
error |
Type : Exception
|
Default value : null
|
Public markInError | ||||||||
markInError(exception: Exception)
|
||||||||
Marks this operation as in error
Parameters :
Returns :
void
|
Error |
getError()
|
Gets the exception associated to this operation response object.
Returns :
Exception
|
import { Exception } from '../baseframework/Exceptions';
/**
*
* @wType System.Data.Services.Client.OperationResponse
*/
export class OperationResponse {
#error: Exception = null;
/**
* Gets the exception associated to this operation response object.
*
* @type {Exception}
* @memberof OperationResponse
*/
get Error(): Exception {
return this.#error;
}
/**
* Marks this operation as in error
*
* @param {Exception} exception the {Exception} object associated to the error
* @memberof OperationResponse
*/
public markInError(exception: Exception) {
this.#error = exception ?? null;
}
}