Note:

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

DDL exceptions: Difference between revisions

From MoodleDocs
(New page: {{Moodle_2.0}}In previous versions problems during upgrade were ignored by default. TODO: add more info here, explanation and same examples. ==See also== * [[Exceptions|Ex...)
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Moodle_2.0}}In previous versions problems during upgrade were ignored by default.
{{Moodle_2.0}}In previous versions problems during upgrade were ignored by default.


==Overview==
[[Image:Ddl_exceptions.png]]


TODO: add more info here, explanation and same examples.
Defined in lib/ddllib.php for now.


===ddl_exception===
Base class for DDL related exceptions
===ddl_table_missing_exception===
Table specified in function parameter does not exist.
===ddl_field_missing_exception===
Field specified in function parameter does not exist.
===ddl_change_structure_exception===
General exception thrown during execution of sql that changes database structure.


==See also==
==See also==

Latest revision as of 17:32, 27 November 2008

Moodle 2.0

In previous versions problems during upgrade were ignored by default.

Overview

Ddl exceptions.png

Defined in lib/ddllib.php for now.

ddl_exception

Base class for DDL related exceptions

ddl_table_missing_exception

Table specified in function parameter does not exist.

ddl_field_missing_exception

Field specified in function parameter does not exist.

ddl_change_structure_exception

General exception thrown during execution of sql that changes database structure.

See also

  • Exceptions: General guidelines for using of exceptions in Moodle 2.0
  • DML functions: Where all the functions used to handle DB data. (DML) are defined.
  • DDL functions: Where all the functions used to handle DB objects (DDL) are defined.