Interface introduce the ability to observe the messages from the observable class

interface Observer {
    onError?(error): void | Promise<void>;
    onValidationError?(error): void | Promise<void>;
}

Methods

  • Triggers when any error is happening on sending request to the server.

    Parameters

    • error: ErrorMessage

      Error object with the all details of the request

    Returns void | Promise<void>

  • Triggers when any validation request error is occuring

    Parameters

    Returns void | Promise<void>