Exceptions
MIPHPF defines several exceptions, subclassed from the base Exception class in PHP.
* miException - this is the base class for exceptions in MIPHPF
* miConfigurationException - thrown if a configuration/programming error is detected. The following exception codes are used:
const EXCEPTION_FILTER_CONDITION = 1;
const EXCEPTION_FILTER_SAME_ARRAY_SIZE = 2;
const EXCEPTION_FILTER_ONE_IS_ARRAY = 3;
const EXCEPTION_FILTER_INVALID_FIELD = 4;
const EXCEPTION_UNDEFINED_TEMPLATE_FILENAME = 5;
const EXCEPTION_HEADERS_ALREADY_SENT = 6;
const EXCEPTION_DEFAULT_RADIO_INDEX_INVALID = 7;
const EXCEPTION_DEFAULT_OPTION_INDEX_INVALID = 8;
* miDBException - thrown if database related exception is encountered. Exception codes:
const EXCEPTION_CONNECT = 1;
const EXCEPTION_SELECTDB = 2;
const EXCEPTION_QUERY = 3;
const EXCEPTION_RECORD_NOT_FOUND = 4;