When writing I sometimes have time-outs or errors. is there a way to receive the errors with the information? It seems the library is not using a try catch?
try{ $saver->save( $revision); } catch (Exception $e) { return $e; }
When writing I sometimes have time-outs or errors. is there a way to receive the errors with the information? It seems the library is not using a try catch?
try{ $saver->save( $revision); } catch (Exception $e) { return $e; }
When you say "I sometimes have time-outs or errors" are you getting exceptions for these?
If so, yes you can catch them and get extra information from them.
Writing to wikidata returns sometimes errors that stops the system. The following errors occur and it would be great if Addwiki can handle them. One is if there is something with the wikilinks, other are redirects. It would be really convenient if with an redirect it read/write the redirect instead of an error.
These are all normal Exceptions and can be caught as normal, and handled however your application sees fit.
Can you explain more of what you're doing and maybe the actual try-catch block you're using? (The one above just re-throws the caught Exception, and so does nothing.)