Sloodle status codes

From SLIS Second Life Wiki

Jump to: navigation, search

Contents

Core success codes

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.

(See Communicating_between_server_and_client#The_status_line )

Status Codes (planned)
Code Type Summary
1 MISC OK
103 SYSTEM Successfully inserted data into system
301 MISC_REGISTER OK - User is already registered
322 MISC_REGISTER OK - User wasn't previously registered, but we registered them automatically, kept going, and everything worked out great.
401 MISC_ENROL OK - User is already enrolled
422 MISC_ENROL OK - User wasn't previously enrolled on the necessary course, but we enrolled them automatically, kept going, and everything worked out great.


Core error codes

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.
-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
-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.
-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
-777000TRANSACTION 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

Object-Specific Success Codes

Choice

Code Type Summary
10001 CHOICE_QUERY Obtained results successfully
10011 CHOICE_SELECT Added new choice selection for user
10012 CHOICE_SELECT Updated choice selection for user
10013 CHOICE_SELECT User had previously selected the same option


Chat

Code Type Summary
10101 CHAT_MESSAGE Successfully added a chat message into the database (commonly used as a side-effect code)


Object-Specific Error Codes

Choice

Code Type Summary
-10001 CHOICE_QUERY Unable to query choice status for unknown reason
-10011 CHOICE_SELECT The user has already selected a choice, and choices cannot be updated
-10012 CHOICE_SELECT Maximum number of selections for this choice already made
-10013 CHOICE_SELECT Choice is not yet open for selections
-10014 CHOICE_SELECT Choice has been closed
-10015 CHOICE_SELECT Specified option not found in choice
-10016 CHOICE_SELECT Unable to make choice selection for unknown reason (usually more data appended in data lines)
-10021 CHOICE_LIST_QUERY Unable to query list of choice instances for unknown reason
-10022 CHOICE_LIST_QUERY Not choice instances available in course


Chat

Code Type Summary
-10101 CHAT_MESSAGE Failed to add chat message to database


Assignments (e.g. PrimDrop)

Code Type Summary
-10201 ASSIGNMENT User is not authorised to submit assignments
-10202 ASSIGNMENT Assignment is not yet open for submissions
-10203 ASSIGNMENT Assignment due date has passed, and is closed for submissions
-10204 ASSIGNMENT Assignment due date has passed, but is still accepting submissions (typically a side effect code)
-10205 ASSIGNMENT Resubmissions are not permitted


Quiz

Code Type Summary
-10301 QUIZ Student has used all quiz attempts
-10302 QUIZ Quiz requires password - this is not supported by Sloodle
-10303 QUIZ Error loading questions


Blog

Code Type Summary
-10401 BLOG Blogging is disabled on this site.
-10402 BLOG User does not have permission to write blogs


Presenter

Code Type Summary
-10501 PRESENTER There are no slides in this presentation.

Awards

Code Type Summary
-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


Lessons

Code Type Summary
-9782 HQ No lessons in the course
-9783 HQ No pages for this lesson in the course
-9784 HQ No answers for this lesson in the course


This page is part of the Sloodle documentation
SloodleDocs Home | User Documentation | Administrator Documentation | Developer Documentation | Sloodle Wiki Home
Personal tools