-
October 8th, 2008, 01:29 PM
#1
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?
-
October 9th, 2008, 05:53 AM
#2
i just nw see... there are number of event handlers like onServerError, onClientError..... hope these will help
-
October 29th, 2008, 07:17 AM
#3
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?
-
October 30th, 2008, 10:25 AM
#4
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
-
By mnenchev in forum General
Replies: 3
Last Post: April 20th, 2010, 09:10 AM
-
By naitsir in forum Adapter SDKs
Replies: 4
Last Post: November 26th, 2009, 06:25 PM
-
By indrajit in forum Adapter SDKs
Replies: 7
Last Post: March 19th, 2008, 08:31 AM
-
By rakeshxp in forum Client SDKs
Replies: 6
Last Post: August 7th, 2007, 08:55 AM
-
By Waddy in forum General
Replies: 3
Last Post: March 6th, 2007, 09:43 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 10:21 PM.
Bookmarks