Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Sep 2008
    Location
    rmd
    Posts
    30

    get custom messages in web client

    is there any way to get custom messages to web client?

    for example i want send a message when user is not authenticated... if there is some error occured in updating... etc...

    is there any way to catch such exceptions in the side of web client?

  2. #2
    Senior Member
    Join Date
    Sep 2008
    Location
    rmd
    Posts
    30
    i just nw see... there are number of event handlers like onServerError, onClientError..... hope these will help

  3. #3
    Senior Member
    Join Date
    Sep 2008
    Location
    rmd
    Posts
    30

    triggering custom errors

    I can use onServer event for handling certain set of errors that are generated in the server.

    But is there any way to send any custom errors from the server?

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    975
    All client requests are validated towards the Metadata Adapter and, for several API methods, the Metadata Adapter can refuse a request by issuing a "CreditsException", where a custom error code and messages can be specified.
    Such code and message are propagated to the client application code (but for the "sendMessage" case, which is not handled by the Web Client Library).
    No custom error codes are available for syntax errors in request details or erros during elaboration of request validation.

    On the other hand, if you mean asynchronous error communications to be inserted into the normal data flow, then the answer is no.
    All asynchronous actions in Lightstreamer are related to the data flow and can only be initiated, on the server side, by the Data Adapter issuing an "update" or similar call.
    Of course, a special-purpose item can be introduced at application level, so that a client can subscribe to it to get asynchronous error communications.

    Note: some asynchronous actions can be triggered through the JMX interface (for Vivace edition only), but none is useful for this purpose.

 

 

Similar Threads

  1. LS not sending all messages to client
    By mnenchev in forum General
    Replies: 3
    Last Post: April 20th, 2010, 10:10 AM
  2. problems with repeated messages
    By naitsir in forum Adapter APIs
    Replies: 4
    Last Post: November 26th, 2009, 07:25 PM
  3. Replies: 7
    Last Post: March 19th, 2008, 09:31 AM
  4. Custom Connection Message
    By rakeshxp in forum Client APIs
    Replies: 6
    Last Post: August 7th, 2007, 09:55 AM
  5. Custom error page
    By Waddy in forum General
    Replies: 3
    Last Post: March 6th, 2007, 10:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 08:49 AM.