first import 7.x-1.4

This commit is contained in:
bachy
2013-03-15 17:32:30 +01:00
commit 9cc5ba4cfa
68 changed files with 17899 additions and 0 deletions

29
includes/exception.inc Normal file
View File

@@ -0,0 +1,29 @@
<?php
/**
* Represents an exception or error that occurred in some part of the Search API
* framework.
*/
class SearchApiException extends Exception {
/**
* Creates a new SearchApiException.
*
* @param $message
* A string describing the cause of the exception.
*/
public function __construct($message = NULL) {
if (!$message) {
$message = t('An error occcurred in the Search API framework.');
}
parent::__construct($message);
}
}
/**
* Represents an exception that occurred in a data source controller.
*/
class SearchApiDataSourceException extends SearchApiException {
}