Oh I see so you selected solution 3?
Is there a way to get the error when publish fails ?
If you want to get an the details of an error occurring you can do the following :
I will improve the management of Exception in 0.9.0.2 in the coming days.
You'll notably have access to an event informing you that an error occurred.
I am still undecided on whether incorrect parameters like a null tweet should be added in the ExceptionHandler. Please let me know what you think.
Linvi
Is there a way to get the error when publish fails ?
If you want to get an the details of an error occurring you can do the following :
var tweet = Tweet.PublishTweet("pdq"); if (tweet == null) { var exception = ExceptionHandler.GetLastException().WebException; }
You'll notably have access to an event informing you that an error occurred.
I am still undecided on whether incorrect parameters like a null tweet should be added in the ExceptionHandler. Please let me know what you think.
Linvi