Commit d816eba6 authored by Penny Leach's avatar Penny Leach
Browse files

Moved artefact not found exception into errors

parent f8c5fd2e
......@@ -27,10 +27,6 @@
defined('INTERNAL') || die();
define('ARTEFACT_FORMAT_LISTITEM', 1);
/**
* Exception - artefact not found
*/
class ArtefactNotFoundException extends Exception {}
/**
* Base artefact plugin class
......@@ -211,7 +207,6 @@ abstract class ArtefactType {
$this->parentinstance = false;
if ($parent = $this->get_parent_metadata()) {
$classname = generate_artefact_class_name($parent->artefacttype);
// @todo this won't work.
$this->parentinstance = new $classname($parent->id, $parent);
}
}
......
......@@ -458,4 +458,13 @@ class ParameterException extends Exception {}
*/
class EmailException extends Exception {}
/**
* Exception - artefact not found
*/
class ArtefactNotFoundException extends Exception {}
/**
* Exception - view not found
*/
class ViewNotFoundException extends Exception {}
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment