Codes 1 to 9999 are reserved for core functionality that will be shared by different modules.
In most cases, success will return 1.
In some cases, where the request was successful but had side effects, eg. the avatar was automatically registered and enrolled in a course before data for them was provided to administer a quiz, status codes for side effects will be included in a separate side-effect field in the status line.
Codes -1 to -9999 are reserved for core functionality that will be shared between different modules.
Error Codes (planned)
| Code |
Type |
Summary
|
| -1 |
MISC |
An unspecified error - try not to use these...
|
| -101 |
SYSTEM |
An unknown system error occured (Try to be more specific...) .
|
| -102 |
SYSTEM |
Could not connect to the database.
|
| -103 |
SYSTEM |
Could not fetch data we expected to be there.
|
| -104 |
SYSTEM |
Data formatting error
|
| -105 |
SYSTEM |
XMLRPC error
|
| -106 |
SYSTEM |
The Sloodle module is not installed in Moodle
|
| -111 |
SYSTEM |
System is temporarily down for maintenance.
|
| -112 |
SYSTEM |
System is temporarily down due to non-payment (Avatar Classroom)
|
| -121 |
SYSTEM |
Failed to send required email
|
| -131 |
PLUGIN |
Failed to load plugins
|
| -132 |
PLUGIN |
The required plugin was not found
|
| -201 |
OBJECT_AUTH |
There was an unspecified problem authenticating the object.
|
| -212 |
OBJECT_AUTH |
Object did not supply the necessary information to authenticate itself.
|
| -213 |
OBJECT_AUTH |
Object authentication key was invalid
|
| -214 |
OBJECT_AUTH |
Object not authorised in this context
|
| -215 |
OBJECT_AUTH |
Prim password access has been disabled for this Controller.
|
| -216 |
OBJECT_AUTH |
Object not found in database
|
| -217 |
OBJECT_AUTH |
Could not save HTTP-in URL (v2.0 etc)
|
| -218 |
OBJECT_AUTH |
Active object not found while trying to save HTTP-in URL (v2.0 etc)
|
| -219 |
OBJECT_AUTH |
Sending configuration to object via HTTP-in URL failed
|
| -301 |
USER_AUTH |
There was an unspecified problem authenticating the user.
|
| -311 |
USER_AUTH |
Object did not supply the necessary information to authenticate the user.
|
| -321 |
USER_AUTH |
User was not registered and we weren't allowed to register them automatically.
|
| -322 |
USER_AUTH |
User was not registered and we tried to register them but failed.
|
| -331 |
USER_AUTH |
User did not have permission to access the resources requested .
|
| -341 |
USER_AUTH |
Password cannot be reset via Sloodle, as user was not auto-registered (or has since registered an email account).
|
| -401 |
USER_ENROL |
There was an unspecified problem involving course enrolment.
|
| -421 |
USER_ENROL |
User was not enrolled on the course and we weren't allowed to enrol them automatically.
|
| -422 |
USER_ENROL |
User was not enrolled on the course and tried to enrol them but failed.
|
| -501 |
COURSE |
There was an unspecified problem involving the course you ar trying to use.
|
| -511 |
COURSE |
The course you are trying to use was not specified.
|
| -512 |
COURSE |
The course you are trying to use was not found.
|
| -513 |
COURSE |
The course you are trying to use was inactive.
|
| -514 |
COURSE |
The course you are trying to use was forbidden from being used with Sloodle.
|
| -515 |
COURSE |
Auto Enrol is not enabled for this site
|
| -516 |
COURSE |
Auto Registration is not enabled for this site
|
| -601 |
MODULE |
There was an unspecifed problem involving the module you're trying to use.
|
| -611 |
MODULE |
The module you are trying to use was not specified.
|
| -612 |
MODULE |
The module you are trying to use was found.
|
| -613 |
MODULE |
The module you are trying to use was inactive.
|
| -614 |
MODULE |
The module you are trying to use was forbidden from being used by Sloodle.
|
| -701 |
MODULE_INSTANCE |
There was an unspecifed problem involving the module instance you're trying to use.
|
| -711 |
MODULE_INSTANCE |
The module instance you are trying to use was not specified.
|
| -712 |
MODULE_INSTANCE |
The module instance you are trying to use was not found.
|
| -713 |
MODULE_INSTANCE |
The module instance you are trying to use was inactive.
|
| -714 |
MODULE_INSTANCE |
The module instance you are trying to use was forbidden from being used by Sloodle.
|
| -801 |
REQUEST |
Requested script permanently deleted.
|
| -802 |
REQUEST |
Requested script moved (new location may be specified in the first data line)
|
| -811 |
REQUEST |
Request incomplete (not all required data present)
|
| -812 |
REQUEST |
Requested resource could not be found (although the request itself was handled successfully)
|
| -901 |
PROFILE |
Unknown profile error
|
| -902 |
PROFILE |
Profile does not exist
|
| -903 |
PROFILE |
Profile already exists
|
| -904 |
PROFILE |
Unknown profile command
|
| -1001 |
AWARDS |
You do not have enough points to use this object. (There may be a customized message in the next line.)
|
| Code |
Type |
Summary
|
| 80002 |
HQ |
No players have joined the game yet.
|
| -500001 |
HQ |
tried to insert data into the sloodle_award_players table - but there was an error
|
| -500100 |
HQ |
tried to insert Sloodle_awards_teams but got an error
|
| -500200 |
HQ |
tried to add an award group, but group name passed into the function does not exist in moodle.
|
| -500300 |
HQ |
group already exists for this award
|
| -500400 |
HQ |
group doesn't exist for this award
|
| -500500 |
HQ |
could not delete the group from the sloodle_awards_teams table
|
| -500600 |
HQ |
group does not exist in the sloodle_awards_teams table
|
| -500700 |
HQ |
no awards groups exist for this sloodle module id
|
| -500800 |
HQ |
HQ A transaction was searched for based on avatar uuid, and transaction details. However, we could not find the transaction searched for, based on the query specified
|
| -500900 |
HQ |
&sloodlemoduleid or &sloodleid must be defined and included in the url request so we can connect to an awards activity to complete this transaction
|
| -501100 |
HQ |
no Sloodle_awards for this course
|
| -501200 |
HQ |
cant insert record in sloodle_awards_scoreboards
|
| -501300 |
HQ |
cant delete record in sloodle_awards_scoreboards
|
| -777000 |
TRANSACTION |
Transaction Not found - this was issued by the Sloodle Awards System when a transaction was searched for in the sloodle_award_trans table, and nothing was found
|