summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/src/Schema/Exception/SchemaTypeNotFoundException.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/src/Schema/Exception/SchemaTypeNotFoundException.php')
-rw-r--r--www/wiki/extensions/SemanticMediaWiki/src/Schema/Exception/SchemaTypeNotFoundException.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/src/Schema/Exception/SchemaTypeNotFoundException.php b/www/wiki/extensions/SemanticMediaWiki/src/Schema/Exception/SchemaTypeNotFoundException.php
new file mode 100644
index 00000000..9f5b67e3
--- /dev/null
+++ b/www/wiki/extensions/SemanticMediaWiki/src/Schema/Exception/SchemaTypeNotFoundException.php
@@ -0,0 +1,39 @@
+<?php
+
+namespace SMW\Schema\Exception;
+
+use RuntimeException;
+
+/**
+ * @license GNU GPL v2+
+ * @since 3.0
+ *
+ * @author mwjames
+ */
+class SchemaTypeNotFoundException extends RuntimeException {
+
+ /**
+ * @var string
+ */
+ private $type = '';
+
+ /**
+ * @since 3.0
+ *
+ * @param string $type
+ */
+ public function __construct( $type ) {
+ parent::__construct( "$type is an unrecognized schema type." );
+ $this->type = $type;
+ }
+
+ /**
+ * @since 3.0
+ *
+ * @return string
+ */
+ public function getType() {
+ return $this->type;
+ }
+
+}