File

projects/wms-framework/src/lib/dataService/operationResponse.ts

Index

Properties
Methods
Accessors

Properties

error
Type : Exception
Default value : null

Methods

Public markInError
markInError(exception: Exception)

Marks this operation as in error

Parameters :
Name Type Optional Description
exception Exception No

the {Exception} object associated to the error

Returns : void

Accessors

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;
  }
}

result-matching ""

    No results matching ""