Module for all xblock exception classes
open_local_resource() if the requested file is not allowed.
Warning for use of deprecated _field_data accessor
Raised to indicated that operating on the supplied scope isn’t allowed by a KeyValueStore
Raised by a function decorated with XBlock.json_handler to indicate that an error response should be returned.
Returns a Response object containing this object’s status code and a JSON object containing the key “error” with the value of this object’s error message in the body. Keyword args are passed through to the Response.
Raised to indicated an error in saving multiple fields in a KeyValueStore
Create a new KeyValueMultiSaveError
saved_field_names - an iterable of field names (strings) that were successfully saved before the exception occured
IdReader.get_block_type() if the definition doesn’t exist.
Raised to indicate that the requested handler was not found.
Raised to indicate that a requested service was not found.
IdReader.get_definition_id() if the usage doesn’t exist.
Raised to indicate that the view requested was not found.
Create a new NoSuchViewError
Raised to indicate that an XBlock could not be found with the requested usage_id
XBlockSaveError(saved_fields, dirty_fields, message=None)¶
Raised to indicate an error in saving an XBlock
Create a new XBlockSaveError
saved_fields - a set of fields that were successfully saved before the error occured dirty_fields - a set of fields that were left dirty after the save