Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Errors handling in web services: Difference between revisions

From MoodleDocs
(Created page with "{{stubs}} I'm looking at how we return errors in the current Moodle web services. Here is the status: - exceptions are raised: 16 functions - string error messages: 2 functions...")
 
No edit summary
Line 1: Line 1:
{{stubs}}
{{stub}}
 
I'm looking at how we return errors in the current Moodle web services. Here is the status:
I'm looking at how we return errors in the current Moodle web services. Here is the status:



Revision as of 04:17, 7 March 2012


I'm looking at how we return errors in the current Moodle web services. Here is the status:

- exceptions are raised: 16 functions

- string error messages: 2 functions (create notes / send messages)

- download/upload script return string error message (JSON) + error code


- When exception are raised, a unique error message is returned. It is format by the protocol server.

REST:


<error>

</error>