diff --git a/CHANGELOG.md b/CHANGELOG.md index f1383ad0e..c2697b2c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Connections, Connection pools and Selectors are deprecated. Use a PSR HTTP Client that supports retries instead. - Throwing exceptions for different HTTP status codes is deprecated. Use the response object to check the status code instead. - The following namespaces have been deprecated and will be removed in 3.0.0: 'async_search', 'searchable_snapshots', 'ssl', 'data_frame_transform_deprecated', 'monitoring'. +- A number of exceptions under `\OpenSearch\Common\Exceptions` are deprecated and moved to `\OpenSearch\Exception`. ### Removed - Removed support for PHP 7.3, 7.4 and 8.0. - Removed support for async requests which were never actually working. @@ -31,6 +32,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Fixed PHP 8.4 deprecations - Fixed outdated tests ### Updated APIs +- Updated opensearch-php APIs to reflect [opensearch-api-specification@b9dcb25](https://github.com/opensearch-project/opensearch-api-specification/commit/b9dcb251d551e90ecfc416ba134efe83cbcbc1b3) - Updated opensearch-php APIs to reflect [opensearch-api-specification@9df46f8](https://github.com/opensearch-project/opensearch-api-specification/commit/9df46f8134641ae5b429e3e9269858c7cb27e4f0) - Updated opensearch-php APIs to reflect [opensearch-api-specification@592336a](https://github.com/opensearch-project/opensearch-api-specification/commit/592336afb88844f0c5785ba4b085dba3884ac580) - Updated opensearch-php APIs to reflect [opensearch-api-specification@799d046](https://github.com/opensearch-project/opensearch-api-specification/commit/799d04622aeddce7b697665d63a29fc049e5088e) diff --git a/src/OpenSearch/Common/Exceptions/BadMethodCallException.php b/src/OpenSearch/Common/Exceptions/BadMethodCallException.php index 131c720a7..6e55d6b5c 100644 --- a/src/OpenSearch/Common/Exceptions/BadMethodCallException.php +++ b/src/OpenSearch/Common/Exceptions/BadMethodCallException.php @@ -31,6 +31,6 @@ * * @deprecated in 2.4.0 and will be removed in 3.0.0. */ -class BadMethodCallException extends \BadMethodCallException implements OpenSearchException +class BadMethodCallException extends \OpenSearch\Exception\BadMethodCallException { } diff --git a/src/OpenSearch/Common/Exceptions/RuntimeException.php b/src/OpenSearch/Common/Exceptions/RuntimeException.php index 09ab9af10..03ae23534 100644 --- a/src/OpenSearch/Common/Exceptions/RuntimeException.php +++ b/src/OpenSearch/Common/Exceptions/RuntimeException.php @@ -21,8 +21,12 @@ namespace OpenSearch\Common\Exceptions; -use OpenSearch\Exception\OpenSearchExceptionInterface; +// @phpstan-ignore classConstant.deprecatedClass +@trigger_error(RuntimeException::class . ' is deprecated in 2.4.0 and will be removed in 3.0.0. Use \OpenSearch\Exception\RuntimeException instead.', E_USER_DEPRECATED); -class RuntimeException extends \RuntimeException implements OpenSearchExceptionInterface +/** + * @deprecated in 2.4.0 and will be removed in 3.0.0. Use \OpenSearch\Exception\RuntimeException instead. + */ +class RuntimeException extends \OpenSearch\Exception\RuntimeException { } diff --git a/src/OpenSearch/Common/Exceptions/Serializer/JsonErrorException.php b/src/OpenSearch/Common/Exceptions/Serializer/JsonErrorException.php index 275d3b5d8..79ebf5dc6 100644 --- a/src/OpenSearch/Common/Exceptions/Serializer/JsonErrorException.php +++ b/src/OpenSearch/Common/Exceptions/Serializer/JsonErrorException.php @@ -21,69 +21,14 @@ namespace OpenSearch\Common\Exceptions\Serializer; -use OpenSearch\Exception\OpenSearchExceptionInterface; +// @phpstan-ignore classConstant.deprecatedClass +@trigger_error(JsonErrorException::class . ' is deprecated in 2.4.0 and will be removed in 3.0.0. Use \OpenSearch\Exception\JsonErrorException instead.', E_USER_DEPRECATED); /** * Class JsonErrorException + * + * @deprecated in 2.4.0 and will be removed in 3.0.0. Use \OpenSearch\Exception\JsonErrorException instead. */ -class JsonErrorException extends \Exception implements OpenSearchExceptionInterface +class JsonErrorException extends \OpenSearch\Exception\JsonException { - /** - * @var mixed - */ - private $input; - - /** - * @var mixed - */ - private $result; - - /** - * @var string[] - */ - private static $messages = array( - JSON_ERROR_DEPTH => 'The maximum stack depth has been exceeded', - JSON_ERROR_STATE_MISMATCH => 'Invalid or malformed JSON', - JSON_ERROR_CTRL_CHAR => 'Control character error, possibly incorrectly encoded', - JSON_ERROR_SYNTAX => 'Syntax error', - JSON_ERROR_UTF8 => 'Malformed UTF-8 characters, possibly incorrectly encoded', - JSON_ERROR_RECURSION => 'One or more recursive references in the value to be encoded', - JSON_ERROR_INF_OR_NAN => 'One or more NAN or INF values in the value to be encoded', - JSON_ERROR_UNSUPPORTED_TYPE => 'A value of a type that cannot be encoded was given', - - // JSON_ERROR_* constant values that are available on PHP >= 7.0 - 9 => 'Decoding of value would result in invalid PHP property name', //JSON_ERROR_INVALID_PROPERTY_NAME - 10 => 'Attempted to decode nonexistent UTF-16 code-point' //JSON_ERROR_UTF16 - ); - - /** - * @param mixed $input - * @param mixed $result - */ - public function __construct(int $code, $input, $result, ?\Throwable $previous = null) - { - if (isset(self::$messages[$code]) !== true) { - throw new \InvalidArgumentException(sprintf('Encountered unknown JSON error code: [%d]', $code)); - } - - parent::__construct(self::$messages[$code], $code, $previous); - $this->input = $input; - $this->result = $result; - } - - /** - * @return mixed - */ - public function getInput() - { - return $this->input; - } - - /** - * @return mixed - */ - public function getResult() - { - return $this->result; - } } diff --git a/src/OpenSearch/Common/Exceptions/UnexpectedValueException.php b/src/OpenSearch/Common/Exceptions/UnexpectedValueException.php index 657f1e86e..f149fd66f 100644 --- a/src/OpenSearch/Common/Exceptions/UnexpectedValueException.php +++ b/src/OpenSearch/Common/Exceptions/UnexpectedValueException.php @@ -21,8 +21,12 @@ namespace OpenSearch\Common\Exceptions; -use OpenSearch\Exception\OpenSearchExceptionInterface; +// @phpstan-ignore classConstant.deprecatedClass +@trigger_error(UnexpectedValueException::class . ' is deprecated in 2.4.0 and will be removed in 3.0.0. Use \OpenSearch\Exception\UnexpectedValueException instead.', E_USER_DEPRECATED); -class UnexpectedValueException extends \UnexpectedValueException implements OpenSearchExceptionInterface +/** + * @deprecated in 2.4.0 and will be removed in 3.0.0. Use \OpenSearch\Exception\UnexpectedValueException instead. + */ +class UnexpectedValueException extends \OpenSearch\Exception\UnexpectedValueException { } diff --git a/src/OpenSearch/Endpoints/AbstractEndpoint.php b/src/OpenSearch/Endpoints/AbstractEndpoint.php index 31c19c09e..a490dbaf3 100644 --- a/src/OpenSearch/Endpoints/AbstractEndpoint.php +++ b/src/OpenSearch/Endpoints/AbstractEndpoint.php @@ -21,8 +21,8 @@ namespace OpenSearch\Endpoints; -use OpenSearch\Common\Exceptions\UnexpectedValueException; use OpenSearch\EndpointInterface; +use OpenSearch\Exception\UnexpectedValueException; use OpenSearch\Serializers\SerializerInterface; use function array_filter; diff --git a/src/OpenSearch/Endpoints/AsyncSearch/Delete.php b/src/OpenSearch/Endpoints/AsyncSearch/Delete.php index 40f582666..c8a6a1c15 100644 --- a/src/OpenSearch/Endpoints/AsyncSearch/Delete.php +++ b/src/OpenSearch/Endpoints/AsyncSearch/Delete.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\AsyncSearch; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; class Delete extends AbstractEndpoint diff --git a/src/OpenSearch/Endpoints/AsyncSearch/Get.php b/src/OpenSearch/Endpoints/AsyncSearch/Get.php index 847ba8d30..3f6b86c0e 100644 --- a/src/OpenSearch/Endpoints/AsyncSearch/Get.php +++ b/src/OpenSearch/Endpoints/AsyncSearch/Get.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\AsyncSearch; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; class Get extends AbstractEndpoint diff --git a/src/OpenSearch/Endpoints/AsynchronousSearch/Delete.php b/src/OpenSearch/Endpoints/AsynchronousSearch/Delete.php index e5aab23ab..70b8384dc 100644 --- a/src/OpenSearch/Endpoints/AsynchronousSearch/Delete.php +++ b/src/OpenSearch/Endpoints/AsynchronousSearch/Delete.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\AsynchronousSearch; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/AsynchronousSearch/Get.php b/src/OpenSearch/Endpoints/AsynchronousSearch/Get.php index c2e32e94d..da03a854d 100644 --- a/src/OpenSearch/Endpoints/AsynchronousSearch/Get.php +++ b/src/OpenSearch/Endpoints/AsynchronousSearch/Get.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\AsynchronousSearch; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Cluster/DeleteComponentTemplate.php b/src/OpenSearch/Endpoints/Cluster/DeleteComponentTemplate.php index f146f3ab4..2b3b69b71 100644 --- a/src/OpenSearch/Endpoints/Cluster/DeleteComponentTemplate.php +++ b/src/OpenSearch/Endpoints/Cluster/DeleteComponentTemplate.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Cluster; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Cluster/ExistsComponentTemplate.php b/src/OpenSearch/Endpoints/Cluster/ExistsComponentTemplate.php index a3daa82d7..b12058afc 100644 --- a/src/OpenSearch/Endpoints/Cluster/ExistsComponentTemplate.php +++ b/src/OpenSearch/Endpoints/Cluster/ExistsComponentTemplate.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Cluster; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Cluster/GetDecommissionAwareness.php b/src/OpenSearch/Endpoints/Cluster/GetDecommissionAwareness.php index 487c46624..303bf6af3 100644 --- a/src/OpenSearch/Endpoints/Cluster/GetDecommissionAwareness.php +++ b/src/OpenSearch/Endpoints/Cluster/GetDecommissionAwareness.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Cluster; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Cluster/GetWeightedRouting.php b/src/OpenSearch/Endpoints/Cluster/GetWeightedRouting.php index 4252925c8..81ccdd063 100644 --- a/src/OpenSearch/Endpoints/Cluster/GetWeightedRouting.php +++ b/src/OpenSearch/Endpoints/Cluster/GetWeightedRouting.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Cluster; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Cluster/PutComponentTemplate.php b/src/OpenSearch/Endpoints/Cluster/PutComponentTemplate.php index 3a31ac1a8..84a43e5e4 100644 --- a/src/OpenSearch/Endpoints/Cluster/PutComponentTemplate.php +++ b/src/OpenSearch/Endpoints/Cluster/PutComponentTemplate.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Cluster; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Cluster/PutDecommissionAwareness.php b/src/OpenSearch/Endpoints/Cluster/PutDecommissionAwareness.php index 763ad48b2..93bb4b21b 100644 --- a/src/OpenSearch/Endpoints/Cluster/PutDecommissionAwareness.php +++ b/src/OpenSearch/Endpoints/Cluster/PutDecommissionAwareness.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Cluster; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Cluster/PutWeightedRouting.php b/src/OpenSearch/Endpoints/Cluster/PutWeightedRouting.php index bdacd829c..ffb30d3ad 100644 --- a/src/OpenSearch/Endpoints/Cluster/PutWeightedRouting.php +++ b/src/OpenSearch/Endpoints/Cluster/PutWeightedRouting.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Cluster; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Create.php b/src/OpenSearch/Endpoints/Create.php index c079d42c5..4a8f4f139 100644 --- a/src/OpenSearch/Endpoints/Create.php +++ b/src/OpenSearch/Endpoints/Create.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/CreatePit.php b/src/OpenSearch/Endpoints/CreatePit.php index a872aee57..d36978844 100644 --- a/src/OpenSearch/Endpoints/CreatePit.php +++ b/src/OpenSearch/Endpoints/CreatePit.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/DanglingIndices/DeleteDanglingIndex.php b/src/OpenSearch/Endpoints/DanglingIndices/DeleteDanglingIndex.php index 36823fd29..5608927cb 100644 --- a/src/OpenSearch/Endpoints/DanglingIndices/DeleteDanglingIndex.php +++ b/src/OpenSearch/Endpoints/DanglingIndices/DeleteDanglingIndex.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\DanglingIndices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/DanglingIndices/ImportDanglingIndex.php b/src/OpenSearch/Endpoints/DanglingIndices/ImportDanglingIndex.php index 245526638..fe01ff509 100644 --- a/src/OpenSearch/Endpoints/DanglingIndices/ImportDanglingIndex.php +++ b/src/OpenSearch/Endpoints/DanglingIndices/ImportDanglingIndex.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\DanglingIndices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/DeleteTransform.php b/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/DeleteTransform.php index b9fba474b..1efbb6c17 100644 --- a/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/DeleteTransform.php +++ b/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/DeleteTransform.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\DataFrameTransformDeprecated; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; class DeleteTransform extends AbstractEndpoint diff --git a/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/GetTransformStats.php b/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/GetTransformStats.php index 76cb4e0b6..326c11662 100644 --- a/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/GetTransformStats.php +++ b/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/GetTransformStats.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\DataFrameTransformDeprecated; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; class GetTransformStats extends AbstractEndpoint diff --git a/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/PutTransform.php b/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/PutTransform.php index 675dcced2..482e26087 100644 --- a/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/PutTransform.php +++ b/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/PutTransform.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\DataFrameTransformDeprecated; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; class PutTransform extends AbstractEndpoint diff --git a/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/StartTransform.php b/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/StartTransform.php index 8d3fb47ee..62d412fde 100644 --- a/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/StartTransform.php +++ b/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/StartTransform.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\DataFrameTransformDeprecated; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; class StartTransform extends AbstractEndpoint diff --git a/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/StopTransform.php b/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/StopTransform.php index 086562d42..9c38c62b1 100644 --- a/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/StopTransform.php +++ b/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/StopTransform.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\DataFrameTransformDeprecated; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; class StopTransform extends AbstractEndpoint diff --git a/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/UpdateTransform.php b/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/UpdateTransform.php index b5d6f13f0..6ba0aedd5 100644 --- a/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/UpdateTransform.php +++ b/src/OpenSearch/Endpoints/DataFrameTransformDeprecated/UpdateTransform.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\DataFrameTransformDeprecated; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; class UpdateTransform extends AbstractEndpoint diff --git a/src/OpenSearch/Endpoints/Delete.php b/src/OpenSearch/Endpoints/Delete.php index 7593b5f7a..c2e5e07d9 100644 --- a/src/OpenSearch/Endpoints/Delete.php +++ b/src/OpenSearch/Endpoints/Delete.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/DeleteByQuery.php b/src/OpenSearch/Endpoints/DeleteByQuery.php index 3f10e0c66..3078b7e6f 100644 --- a/src/OpenSearch/Endpoints/DeleteByQuery.php +++ b/src/OpenSearch/Endpoints/DeleteByQuery.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/DeleteByQueryRethrottle.php b/src/OpenSearch/Endpoints/DeleteByQueryRethrottle.php index dc33c4f5b..64afd7c31 100644 --- a/src/OpenSearch/Endpoints/DeleteByQueryRethrottle.php +++ b/src/OpenSearch/Endpoints/DeleteByQueryRethrottle.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/DeleteScript.php b/src/OpenSearch/Endpoints/DeleteScript.php index d7ff9e4d3..f0d85dabd 100644 --- a/src/OpenSearch/Endpoints/DeleteScript.php +++ b/src/OpenSearch/Endpoints/DeleteScript.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Exists.php b/src/OpenSearch/Endpoints/Exists.php index 48bab9ace..ab088075a 100644 --- a/src/OpenSearch/Endpoints/Exists.php +++ b/src/OpenSearch/Endpoints/Exists.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/ExistsSource.php b/src/OpenSearch/Endpoints/ExistsSource.php index e80455b44..8d04de736 100644 --- a/src/OpenSearch/Endpoints/ExistsSource.php +++ b/src/OpenSearch/Endpoints/ExistsSource.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Explain.php b/src/OpenSearch/Endpoints/Explain.php index 3f86eaf53..935e1b5f1 100644 --- a/src/OpenSearch/Endpoints/Explain.php +++ b/src/OpenSearch/Endpoints/Explain.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/FlowFramework/Delete.php b/src/OpenSearch/Endpoints/FlowFramework/Delete.php index 4dd4d0c3e..4a50713b9 100644 --- a/src/OpenSearch/Endpoints/FlowFramework/Delete.php +++ b/src/OpenSearch/Endpoints/FlowFramework/Delete.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\FlowFramework; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/FlowFramework/Deprovision.php b/src/OpenSearch/Endpoints/FlowFramework/Deprovision.php index f8acb704e..6f9790c7c 100644 --- a/src/OpenSearch/Endpoints/FlowFramework/Deprovision.php +++ b/src/OpenSearch/Endpoints/FlowFramework/Deprovision.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\FlowFramework; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/FlowFramework/Get.php b/src/OpenSearch/Endpoints/FlowFramework/Get.php index 96d43622e..4e9311c66 100644 --- a/src/OpenSearch/Endpoints/FlowFramework/Get.php +++ b/src/OpenSearch/Endpoints/FlowFramework/Get.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\FlowFramework; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/FlowFramework/GetStatus.php b/src/OpenSearch/Endpoints/FlowFramework/GetStatus.php index 6d17ab7d0..9af430d51 100644 --- a/src/OpenSearch/Endpoints/FlowFramework/GetStatus.php +++ b/src/OpenSearch/Endpoints/FlowFramework/GetStatus.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\FlowFramework; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/FlowFramework/Provision.php b/src/OpenSearch/Endpoints/FlowFramework/Provision.php index 27c851386..e8faa7d1f 100644 --- a/src/OpenSearch/Endpoints/FlowFramework/Provision.php +++ b/src/OpenSearch/Endpoints/FlowFramework/Provision.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\FlowFramework; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/FlowFramework/Update.php b/src/OpenSearch/Endpoints/FlowFramework/Update.php index 16233f8bf..3f840dfdc 100644 --- a/src/OpenSearch/Endpoints/FlowFramework/Update.php +++ b/src/OpenSearch/Endpoints/FlowFramework/Update.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\FlowFramework; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Get.php b/src/OpenSearch/Endpoints/Get.php index d5c4bb30a..d3b6918d6 100644 --- a/src/OpenSearch/Endpoints/Get.php +++ b/src/OpenSearch/Endpoints/Get.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/GetScript.php b/src/OpenSearch/Endpoints/GetScript.php index aa1e871be..7430e1044 100644 --- a/src/OpenSearch/Endpoints/GetScript.php +++ b/src/OpenSearch/Endpoints/GetScript.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/GetSource.php b/src/OpenSearch/Endpoints/GetSource.php index d99afe3ef..bb0a17997 100644 --- a/src/OpenSearch/Endpoints/GetSource.php +++ b/src/OpenSearch/Endpoints/GetSource.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Index.php b/src/OpenSearch/Endpoints/Index.php index 64f0a3ea7..ea2cb6290 100644 --- a/src/OpenSearch/Endpoints/Index.php +++ b/src/OpenSearch/Endpoints/Index.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/AddBlock.php b/src/OpenSearch/Endpoints/Indices/AddBlock.php index e797fd353..4d3a424aa 100644 --- a/src/OpenSearch/Endpoints/Indices/AddBlock.php +++ b/src/OpenSearch/Endpoints/Indices/AddBlock.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/CloneIndices.php b/src/OpenSearch/Endpoints/Indices/CloneIndices.php index 8717637f9..b30a9c328 100644 --- a/src/OpenSearch/Endpoints/Indices/CloneIndices.php +++ b/src/OpenSearch/Endpoints/Indices/CloneIndices.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/Close.php b/src/OpenSearch/Endpoints/Indices/Close.php index a858965df..cd60e2ef5 100644 --- a/src/OpenSearch/Endpoints/Indices/Close.php +++ b/src/OpenSearch/Endpoints/Indices/Close.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/Create.php b/src/OpenSearch/Endpoints/Indices/Create.php index 3bcdafd53..f9233bb9d 100644 --- a/src/OpenSearch/Endpoints/Indices/Create.php +++ b/src/OpenSearch/Endpoints/Indices/Create.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/CreateDataStream.php b/src/OpenSearch/Endpoints/Indices/CreateDataStream.php index 3440922ce..4b9b0e11c 100644 --- a/src/OpenSearch/Endpoints/Indices/CreateDataStream.php +++ b/src/OpenSearch/Endpoints/Indices/CreateDataStream.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/Delete.php b/src/OpenSearch/Endpoints/Indices/Delete.php index 1b39192de..3ff9355e8 100644 --- a/src/OpenSearch/Endpoints/Indices/Delete.php +++ b/src/OpenSearch/Endpoints/Indices/Delete.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/DeleteAlias.php b/src/OpenSearch/Endpoints/Indices/DeleteAlias.php index 4a09ce150..5acba3578 100644 --- a/src/OpenSearch/Endpoints/Indices/DeleteAlias.php +++ b/src/OpenSearch/Endpoints/Indices/DeleteAlias.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/DeleteDataStream.php b/src/OpenSearch/Endpoints/Indices/DeleteDataStream.php index be9fe5f00..0aea2e214 100644 --- a/src/OpenSearch/Endpoints/Indices/DeleteDataStream.php +++ b/src/OpenSearch/Endpoints/Indices/DeleteDataStream.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/DeleteIndexTemplate.php b/src/OpenSearch/Endpoints/Indices/DeleteIndexTemplate.php index 7f3c0ccc8..ac6c5f29d 100644 --- a/src/OpenSearch/Endpoints/Indices/DeleteIndexTemplate.php +++ b/src/OpenSearch/Endpoints/Indices/DeleteIndexTemplate.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/DeleteTemplate.php b/src/OpenSearch/Endpoints/Indices/DeleteTemplate.php index 9f322665b..41408a2fe 100644 --- a/src/OpenSearch/Endpoints/Indices/DeleteTemplate.php +++ b/src/OpenSearch/Endpoints/Indices/DeleteTemplate.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/Exists.php b/src/OpenSearch/Endpoints/Indices/Exists.php index 0968b1090..22e395b90 100644 --- a/src/OpenSearch/Endpoints/Indices/Exists.php +++ b/src/OpenSearch/Endpoints/Indices/Exists.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/ExistsAlias.php b/src/OpenSearch/Endpoints/Indices/ExistsAlias.php index 874943f5e..1d151bbb1 100644 --- a/src/OpenSearch/Endpoints/Indices/ExistsAlias.php +++ b/src/OpenSearch/Endpoints/Indices/ExistsAlias.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/ExistsIndexTemplate.php b/src/OpenSearch/Endpoints/Indices/ExistsIndexTemplate.php index 43b26f255..cc4fd8998 100644 --- a/src/OpenSearch/Endpoints/Indices/ExistsIndexTemplate.php +++ b/src/OpenSearch/Endpoints/Indices/ExistsIndexTemplate.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/ExistsTemplate.php b/src/OpenSearch/Endpoints/Indices/ExistsTemplate.php index 16cedd185..c2746cedb 100644 --- a/src/OpenSearch/Endpoints/Indices/ExistsTemplate.php +++ b/src/OpenSearch/Endpoints/Indices/ExistsTemplate.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/Get.php b/src/OpenSearch/Endpoints/Indices/Get.php index fa1f85c6b..057b058a8 100644 --- a/src/OpenSearch/Endpoints/Indices/Get.php +++ b/src/OpenSearch/Endpoints/Indices/Get.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/GetFieldMapping.php b/src/OpenSearch/Endpoints/Indices/GetFieldMapping.php index 856e27c90..81ce04ac9 100644 --- a/src/OpenSearch/Endpoints/Indices/GetFieldMapping.php +++ b/src/OpenSearch/Endpoints/Indices/GetFieldMapping.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/Open.php b/src/OpenSearch/Endpoints/Indices/Open.php index 8b410b2cd..6d6fe4042 100644 --- a/src/OpenSearch/Endpoints/Indices/Open.php +++ b/src/OpenSearch/Endpoints/Indices/Open.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/PutIndexTemplate.php b/src/OpenSearch/Endpoints/Indices/PutIndexTemplate.php index ed18f13a2..0ed8b0c26 100644 --- a/src/OpenSearch/Endpoints/Indices/PutIndexTemplate.php +++ b/src/OpenSearch/Endpoints/Indices/PutIndexTemplate.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/PutMapping.php b/src/OpenSearch/Endpoints/Indices/PutMapping.php index 0a107bdeb..a3e772d4f 100644 --- a/src/OpenSearch/Endpoints/Indices/PutMapping.php +++ b/src/OpenSearch/Endpoints/Indices/PutMapping.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/PutTemplate.php b/src/OpenSearch/Endpoints/Indices/PutTemplate.php index e3253583f..013f1abcd 100644 --- a/src/OpenSearch/Endpoints/Indices/PutTemplate.php +++ b/src/OpenSearch/Endpoints/Indices/PutTemplate.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/RefreshSearchAnalyzers.php b/src/OpenSearch/Endpoints/Indices/RefreshSearchAnalyzers.php index 971086e21..ab7883298 100644 --- a/src/OpenSearch/Endpoints/Indices/RefreshSearchAnalyzers.php +++ b/src/OpenSearch/Endpoints/Indices/RefreshSearchAnalyzers.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; class RefreshSearchAnalyzers extends AbstractEndpoint diff --git a/src/OpenSearch/Endpoints/Indices/ResolveIndex.php b/src/OpenSearch/Endpoints/Indices/ResolveIndex.php index 95604069b..2b8d886d6 100644 --- a/src/OpenSearch/Endpoints/Indices/ResolveIndex.php +++ b/src/OpenSearch/Endpoints/Indices/ResolveIndex.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/Rollover.php b/src/OpenSearch/Endpoints/Indices/Rollover.php index d867b9d25..e1852e20d 100644 --- a/src/OpenSearch/Endpoints/Indices/Rollover.php +++ b/src/OpenSearch/Endpoints/Indices/Rollover.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/Shrink.php b/src/OpenSearch/Endpoints/Indices/Shrink.php index f1607bb6d..d3dffb349 100644 --- a/src/OpenSearch/Endpoints/Indices/Shrink.php +++ b/src/OpenSearch/Endpoints/Indices/Shrink.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/SimulateIndexTemplate.php b/src/OpenSearch/Endpoints/Indices/SimulateIndexTemplate.php index 1b5a7af76..e1aa5cfd7 100644 --- a/src/OpenSearch/Endpoints/Indices/SimulateIndexTemplate.php +++ b/src/OpenSearch/Endpoints/Indices/SimulateIndexTemplate.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Indices/Split.php b/src/OpenSearch/Endpoints/Indices/Split.php index 366a68071..74fc46c66 100644 --- a/src/OpenSearch/Endpoints/Indices/Split.php +++ b/src/OpenSearch/Endpoints/Indices/Split.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Indices; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ingest/DeletePipeline.php b/src/OpenSearch/Endpoints/Ingest/DeletePipeline.php index aacb475b7..4ae4a8ae0 100644 --- a/src/OpenSearch/Endpoints/Ingest/DeletePipeline.php +++ b/src/OpenSearch/Endpoints/Ingest/DeletePipeline.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Ingest; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ingest/PutPipeline.php b/src/OpenSearch/Endpoints/Ingest/PutPipeline.php index f3fa18adb..3d8d585cd 100644 --- a/src/OpenSearch/Endpoints/Ingest/PutPipeline.php +++ b/src/OpenSearch/Endpoints/Ingest/PutPipeline.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Ingest; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ism/DeletePolicy.php b/src/OpenSearch/Endpoints/Ism/DeletePolicy.php index cd1490b89..ff166f05e 100644 --- a/src/OpenSearch/Endpoints/Ism/DeletePolicy.php +++ b/src/OpenSearch/Endpoints/Ism/DeletePolicy.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ism; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ism/ExistsPolicy.php b/src/OpenSearch/Endpoints/Ism/ExistsPolicy.php index 95af92366..f502662c8 100644 --- a/src/OpenSearch/Endpoints/Ism/ExistsPolicy.php +++ b/src/OpenSearch/Endpoints/Ism/ExistsPolicy.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ism; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ism/GetPolicy.php b/src/OpenSearch/Endpoints/Ism/GetPolicy.php index 982b8c06d..63bc7f20a 100644 --- a/src/OpenSearch/Endpoints/Ism/GetPolicy.php +++ b/src/OpenSearch/Endpoints/Ism/GetPolicy.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ism; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ism/PutPolicy.php b/src/OpenSearch/Endpoints/Ism/PutPolicy.php index e2a7f7a95..81109eb34 100644 --- a/src/OpenSearch/Endpoints/Ism/PutPolicy.php +++ b/src/OpenSearch/Endpoints/Ism/PutPolicy.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ism; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ism/RefreshSearchAnalyzers.php b/src/OpenSearch/Endpoints/Ism/RefreshSearchAnalyzers.php index 7fff41ff5..7c0f18853 100644 --- a/src/OpenSearch/Endpoints/Ism/RefreshSearchAnalyzers.php +++ b/src/OpenSearch/Endpoints/Ism/RefreshSearchAnalyzers.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ism; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Knn/DeleteModel.php b/src/OpenSearch/Endpoints/Knn/DeleteModel.php index 81069be46..441efb3b7 100644 --- a/src/OpenSearch/Endpoints/Knn/DeleteModel.php +++ b/src/OpenSearch/Endpoints/Knn/DeleteModel.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Knn; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Knn/GetModel.php b/src/OpenSearch/Endpoints/Knn/GetModel.php index 1ea80d2d8..8e4a7701b 100644 --- a/src/OpenSearch/Endpoints/Knn/GetModel.php +++ b/src/OpenSearch/Endpoints/Knn/GetModel.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Knn; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Knn/Warmup.php b/src/OpenSearch/Endpoints/Knn/Warmup.php index 9dcb24dfb..428ce3eac 100644 --- a/src/OpenSearch/Endpoints/Knn/Warmup.php +++ b/src/OpenSearch/Endpoints/Knn/Warmup.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Knn; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/ChunkModel.php b/src/OpenSearch/Endpoints/Ml/ChunkModel.php index afc9f49ee..b69bd0008 100644 --- a/src/OpenSearch/Endpoints/Ml/ChunkModel.php +++ b/src/OpenSearch/Endpoints/Ml/ChunkModel.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/CreateController.php b/src/OpenSearch/Endpoints/Ml/CreateController.php index c8cb5f394..ab3dc32fa 100644 --- a/src/OpenSearch/Endpoints/Ml/CreateController.php +++ b/src/OpenSearch/Endpoints/Ml/CreateController.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/CreateMessage.php b/src/OpenSearch/Endpoints/Ml/CreateMessage.php index 11d9dd6fc..15d759fca 100644 --- a/src/OpenSearch/Endpoints/Ml/CreateMessage.php +++ b/src/OpenSearch/Endpoints/Ml/CreateMessage.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/DeleteAgent.php b/src/OpenSearch/Endpoints/Ml/DeleteAgent.php index 12a832141..5b4eabc57 100644 --- a/src/OpenSearch/Endpoints/Ml/DeleteAgent.php +++ b/src/OpenSearch/Endpoints/Ml/DeleteAgent.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/DeleteConnector.php b/src/OpenSearch/Endpoints/Ml/DeleteConnector.php index 500060937..c85efa90d 100644 --- a/src/OpenSearch/Endpoints/Ml/DeleteConnector.php +++ b/src/OpenSearch/Endpoints/Ml/DeleteConnector.php @@ -13,7 +13,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/DeleteController.php b/src/OpenSearch/Endpoints/Ml/DeleteController.php index 031888632..d13945339 100644 --- a/src/OpenSearch/Endpoints/Ml/DeleteController.php +++ b/src/OpenSearch/Endpoints/Ml/DeleteController.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/DeleteMemory.php b/src/OpenSearch/Endpoints/Ml/DeleteMemory.php index 5ff1ff133..3e262e5b8 100644 --- a/src/OpenSearch/Endpoints/Ml/DeleteMemory.php +++ b/src/OpenSearch/Endpoints/Ml/DeleteMemory.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/DeleteModel.php b/src/OpenSearch/Endpoints/Ml/DeleteModel.php index 4386b651e..44297fed8 100644 --- a/src/OpenSearch/Endpoints/Ml/DeleteModel.php +++ b/src/OpenSearch/Endpoints/Ml/DeleteModel.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/DeleteModelGroup.php b/src/OpenSearch/Endpoints/Ml/DeleteModelGroup.php index 40efdd369..1b9a6d0e8 100644 --- a/src/OpenSearch/Endpoints/Ml/DeleteModelGroup.php +++ b/src/OpenSearch/Endpoints/Ml/DeleteModelGroup.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/DeleteTask.php b/src/OpenSearch/Endpoints/Ml/DeleteTask.php index 3d71256cf..4f817e343 100644 --- a/src/OpenSearch/Endpoints/Ml/DeleteTask.php +++ b/src/OpenSearch/Endpoints/Ml/DeleteTask.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/DeployModel.php b/src/OpenSearch/Endpoints/Ml/DeployModel.php index 51fc67acd..597faaf99 100644 --- a/src/OpenSearch/Endpoints/Ml/DeployModel.php +++ b/src/OpenSearch/Endpoints/Ml/DeployModel.php @@ -13,7 +13,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/ExecuteAgent.php b/src/OpenSearch/Endpoints/Ml/ExecuteAgent.php index f41687ba5..ba21965ee 100644 --- a/src/OpenSearch/Endpoints/Ml/ExecuteAgent.php +++ b/src/OpenSearch/Endpoints/Ml/ExecuteAgent.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/GetAgent.php b/src/OpenSearch/Endpoints/Ml/GetAgent.php index 6d3d16c18..ef86b17e8 100644 --- a/src/OpenSearch/Endpoints/Ml/GetAgent.php +++ b/src/OpenSearch/Endpoints/Ml/GetAgent.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/GetAllMessages.php b/src/OpenSearch/Endpoints/Ml/GetAllMessages.php index 5a57a0699..bb496cdab 100644 --- a/src/OpenSearch/Endpoints/Ml/GetAllMessages.php +++ b/src/OpenSearch/Endpoints/Ml/GetAllMessages.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/GetConnector.php b/src/OpenSearch/Endpoints/Ml/GetConnector.php index ac9d1aba0..4e3da81bf 100644 --- a/src/OpenSearch/Endpoints/Ml/GetConnector.php +++ b/src/OpenSearch/Endpoints/Ml/GetConnector.php @@ -13,7 +13,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/GetController.php b/src/OpenSearch/Endpoints/Ml/GetController.php index b8557d78b..b3ebb2eff 100644 --- a/src/OpenSearch/Endpoints/Ml/GetController.php +++ b/src/OpenSearch/Endpoints/Ml/GetController.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/GetMemory.php b/src/OpenSearch/Endpoints/Ml/GetMemory.php index 462e299aa..c46344962 100644 --- a/src/OpenSearch/Endpoints/Ml/GetMemory.php +++ b/src/OpenSearch/Endpoints/Ml/GetMemory.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/GetMessage.php b/src/OpenSearch/Endpoints/Ml/GetMessage.php index 2648ae38f..236054c56 100644 --- a/src/OpenSearch/Endpoints/Ml/GetMessage.php +++ b/src/OpenSearch/Endpoints/Ml/GetMessage.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/GetMessageTraces.php b/src/OpenSearch/Endpoints/Ml/GetMessageTraces.php index 0e7b37a72..46cb964c1 100644 --- a/src/OpenSearch/Endpoints/Ml/GetMessageTraces.php +++ b/src/OpenSearch/Endpoints/Ml/GetMessageTraces.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/GetModel.php b/src/OpenSearch/Endpoints/Ml/GetModel.php index e0550ce4b..bf4342717 100644 --- a/src/OpenSearch/Endpoints/Ml/GetModel.php +++ b/src/OpenSearch/Endpoints/Ml/GetModel.php @@ -13,7 +13,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/GetModelGroup.php b/src/OpenSearch/Endpoints/Ml/GetModelGroup.php index 9a0ddbec2..05c8a7509 100644 --- a/src/OpenSearch/Endpoints/Ml/GetModelGroup.php +++ b/src/OpenSearch/Endpoints/Ml/GetModelGroup.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/GetTask.php b/src/OpenSearch/Endpoints/Ml/GetTask.php index dfbecaab2..1677e91c7 100644 --- a/src/OpenSearch/Endpoints/Ml/GetTask.php +++ b/src/OpenSearch/Endpoints/Ml/GetTask.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/GetTool.php b/src/OpenSearch/Endpoints/Ml/GetTool.php index b0e77c905..379706e9f 100644 --- a/src/OpenSearch/Endpoints/Ml/GetTool.php +++ b/src/OpenSearch/Endpoints/Ml/GetTool.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/LoadModel.php b/src/OpenSearch/Endpoints/Ml/LoadModel.php index c88667fb5..60749f62e 100644 --- a/src/OpenSearch/Endpoints/Ml/LoadModel.php +++ b/src/OpenSearch/Endpoints/Ml/LoadModel.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/Predict.php b/src/OpenSearch/Endpoints/Ml/Predict.php index b9ce4e0b1..63b317256 100644 --- a/src/OpenSearch/Endpoints/Ml/Predict.php +++ b/src/OpenSearch/Endpoints/Ml/Predict.php @@ -13,7 +13,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/PredictModel.php b/src/OpenSearch/Endpoints/Ml/PredictModel.php index 62c8014b5..70e0fdadb 100644 --- a/src/OpenSearch/Endpoints/Ml/PredictModel.php +++ b/src/OpenSearch/Endpoints/Ml/PredictModel.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/SearchMessage.php b/src/OpenSearch/Endpoints/Ml/SearchMessage.php index 101cf4862..8944f972a 100644 --- a/src/OpenSearch/Endpoints/Ml/SearchMessage.php +++ b/src/OpenSearch/Endpoints/Ml/SearchMessage.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/Train.php b/src/OpenSearch/Endpoints/Ml/Train.php index 6273ac4df..23fdbe180 100644 --- a/src/OpenSearch/Endpoints/Ml/Train.php +++ b/src/OpenSearch/Endpoints/Ml/Train.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/TrainPredict.php b/src/OpenSearch/Endpoints/Ml/TrainPredict.php index 6c289bd28..9551630d9 100644 --- a/src/OpenSearch/Endpoints/Ml/TrainPredict.php +++ b/src/OpenSearch/Endpoints/Ml/TrainPredict.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/UpdateConnector.php b/src/OpenSearch/Endpoints/Ml/UpdateConnector.php index ee530b8b7..fff38b036 100644 --- a/src/OpenSearch/Endpoints/Ml/UpdateConnector.php +++ b/src/OpenSearch/Endpoints/Ml/UpdateConnector.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/UpdateController.php b/src/OpenSearch/Endpoints/Ml/UpdateController.php index ed956577a..49f322466 100644 --- a/src/OpenSearch/Endpoints/Ml/UpdateController.php +++ b/src/OpenSearch/Endpoints/Ml/UpdateController.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/UpdateMemory.php b/src/OpenSearch/Endpoints/Ml/UpdateMemory.php index a87d0f36f..3e648005d 100644 --- a/src/OpenSearch/Endpoints/Ml/UpdateMemory.php +++ b/src/OpenSearch/Endpoints/Ml/UpdateMemory.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/UpdateMessage.php b/src/OpenSearch/Endpoints/Ml/UpdateMessage.php index 1cea2b63f..625a5fc02 100644 --- a/src/OpenSearch/Endpoints/Ml/UpdateMessage.php +++ b/src/OpenSearch/Endpoints/Ml/UpdateMessage.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/UpdateModel.php b/src/OpenSearch/Endpoints/Ml/UpdateModel.php index 7cb9ba5a8..649a062b4 100644 --- a/src/OpenSearch/Endpoints/Ml/UpdateModel.php +++ b/src/OpenSearch/Endpoints/Ml/UpdateModel.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/UpdateModelGroup.php b/src/OpenSearch/Endpoints/Ml/UpdateModelGroup.php index 9eb0b7597..4376d8217 100644 --- a/src/OpenSearch/Endpoints/Ml/UpdateModelGroup.php +++ b/src/OpenSearch/Endpoints/Ml/UpdateModelGroup.php @@ -13,7 +13,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Ml/UploadChunk.php b/src/OpenSearch/Endpoints/Ml/UploadChunk.php index 5831292f6..ab52f7e53 100644 --- a/src/OpenSearch/Endpoints/Ml/UploadChunk.php +++ b/src/OpenSearch/Endpoints/Ml/UploadChunk.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Ml; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Notifications/DeleteConfig.php b/src/OpenSearch/Endpoints/Notifications/DeleteConfig.php index d4bf129ef..ca74810cf 100644 --- a/src/OpenSearch/Endpoints/Notifications/DeleteConfig.php +++ b/src/OpenSearch/Endpoints/Notifications/DeleteConfig.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Notifications; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Notifications/GetConfig.php b/src/OpenSearch/Endpoints/Notifications/GetConfig.php index 7e67117f7..5aeccf31c 100644 --- a/src/OpenSearch/Endpoints/Notifications/GetConfig.php +++ b/src/OpenSearch/Endpoints/Notifications/GetConfig.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Notifications; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Notifications/SendTest.php b/src/OpenSearch/Endpoints/Notifications/SendTest.php index c9f237b1a..77fa17124 100644 --- a/src/OpenSearch/Endpoints/Notifications/SendTest.php +++ b/src/OpenSearch/Endpoints/Notifications/SendTest.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Notifications; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Notifications/UpdateConfig.php b/src/OpenSearch/Endpoints/Notifications/UpdateConfig.php index e8b551d78..59d434af5 100644 --- a/src/OpenSearch/Endpoints/Notifications/UpdateConfig.php +++ b/src/OpenSearch/Endpoints/Notifications/UpdateConfig.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Notifications; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Observability/DeleteObject.php b/src/OpenSearch/Endpoints/Observability/DeleteObject.php index bbc38c27a..4ed234c4f 100644 --- a/src/OpenSearch/Endpoints/Observability/DeleteObject.php +++ b/src/OpenSearch/Endpoints/Observability/DeleteObject.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Observability; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Observability/GetObject.php b/src/OpenSearch/Endpoints/Observability/GetObject.php index 94c65fd89..156786dfa 100644 --- a/src/OpenSearch/Endpoints/Observability/GetObject.php +++ b/src/OpenSearch/Endpoints/Observability/GetObject.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Observability; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Observability/UpdateObject.php b/src/OpenSearch/Endpoints/Observability/UpdateObject.php index a4567f213..887676e24 100644 --- a/src/OpenSearch/Endpoints/Observability/UpdateObject.php +++ b/src/OpenSearch/Endpoints/Observability/UpdateObject.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Observability; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/PutScript.php b/src/OpenSearch/Endpoints/PutScript.php index 25e4fab37..184520c2d 100644 --- a/src/OpenSearch/Endpoints/PutScript.php +++ b/src/OpenSearch/Endpoints/PutScript.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Query/DatasourceDelete.php b/src/OpenSearch/Endpoints/Query/DatasourceDelete.php index ccb0b1560..7f01ab23e 100644 --- a/src/OpenSearch/Endpoints/Query/DatasourceDelete.php +++ b/src/OpenSearch/Endpoints/Query/DatasourceDelete.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Query; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Query/DatasourceRetrieve.php b/src/OpenSearch/Endpoints/Query/DatasourceRetrieve.php index f7f54fb0e..8d578d206 100644 --- a/src/OpenSearch/Endpoints/Query/DatasourceRetrieve.php +++ b/src/OpenSearch/Endpoints/Query/DatasourceRetrieve.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Query; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/ReindexRethrottle.php b/src/OpenSearch/Endpoints/ReindexRethrottle.php index 254c969e7..cc50d6509 100644 --- a/src/OpenSearch/Endpoints/ReindexRethrottle.php +++ b/src/OpenSearch/Endpoints/ReindexRethrottle.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Replication/Pause.php b/src/OpenSearch/Endpoints/Replication/Pause.php index eb3cc8ad7..37942e579 100644 --- a/src/OpenSearch/Endpoints/Replication/Pause.php +++ b/src/OpenSearch/Endpoints/Replication/Pause.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Replication; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Replication/Resume.php b/src/OpenSearch/Endpoints/Replication/Resume.php index b3a724c3e..7a6e59839 100644 --- a/src/OpenSearch/Endpoints/Replication/Resume.php +++ b/src/OpenSearch/Endpoints/Replication/Resume.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Replication; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Replication/Start.php b/src/OpenSearch/Endpoints/Replication/Start.php index 1a08c7012..853a51776 100644 --- a/src/OpenSearch/Endpoints/Replication/Start.php +++ b/src/OpenSearch/Endpoints/Replication/Start.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Replication; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Replication/Status.php b/src/OpenSearch/Endpoints/Replication/Status.php index 5a12a5240..59b4746e9 100644 --- a/src/OpenSearch/Endpoints/Replication/Status.php +++ b/src/OpenSearch/Endpoints/Replication/Status.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Replication; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Replication/Stop.php b/src/OpenSearch/Endpoints/Replication/Stop.php index 6a2790ca7..2b7424999 100644 --- a/src/OpenSearch/Endpoints/Replication/Stop.php +++ b/src/OpenSearch/Endpoints/Replication/Stop.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Replication; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Replication/UpdateSettings.php b/src/OpenSearch/Endpoints/Replication/UpdateSettings.php index 19fea21c4..1142e0ff1 100644 --- a/src/OpenSearch/Endpoints/Replication/UpdateSettings.php +++ b/src/OpenSearch/Endpoints/Replication/UpdateSettings.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Replication; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Rollups/Delete.php b/src/OpenSearch/Endpoints/Rollups/Delete.php index 71a7376d4..5748565a5 100644 --- a/src/OpenSearch/Endpoints/Rollups/Delete.php +++ b/src/OpenSearch/Endpoints/Rollups/Delete.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Rollups; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Rollups/Explain.php b/src/OpenSearch/Endpoints/Rollups/Explain.php index f2fd26456..64b8193be 100644 --- a/src/OpenSearch/Endpoints/Rollups/Explain.php +++ b/src/OpenSearch/Endpoints/Rollups/Explain.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Rollups; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Rollups/Get.php b/src/OpenSearch/Endpoints/Rollups/Get.php index ef59af636..99098fe63 100644 --- a/src/OpenSearch/Endpoints/Rollups/Get.php +++ b/src/OpenSearch/Endpoints/Rollups/Get.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Rollups; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Rollups/Put.php b/src/OpenSearch/Endpoints/Rollups/Put.php index 66f555446..b250fa973 100644 --- a/src/OpenSearch/Endpoints/Rollups/Put.php +++ b/src/OpenSearch/Endpoints/Rollups/Put.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Rollups; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Rollups/Start.php b/src/OpenSearch/Endpoints/Rollups/Start.php index 5ab74504d..c955270b7 100644 --- a/src/OpenSearch/Endpoints/Rollups/Start.php +++ b/src/OpenSearch/Endpoints/Rollups/Start.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Rollups; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Rollups/Stop.php b/src/OpenSearch/Endpoints/Rollups/Stop.php index 898a26136..c6c669594 100644 --- a/src/OpenSearch/Endpoints/Rollups/Stop.php +++ b/src/OpenSearch/Endpoints/Rollups/Stop.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Rollups; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/SearchPipeline/Delete.php b/src/OpenSearch/Endpoints/SearchPipeline/Delete.php index f0a9927f7..89bc1a2fa 100644 --- a/src/OpenSearch/Endpoints/SearchPipeline/Delete.php +++ b/src/OpenSearch/Endpoints/SearchPipeline/Delete.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\SearchPipeline; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/SearchPipeline/Put.php b/src/OpenSearch/Endpoints/SearchPipeline/Put.php index c73b3b952..4cedc6ba6 100644 --- a/src/OpenSearch/Endpoints/SearchPipeline/Put.php +++ b/src/OpenSearch/Endpoints/SearchPipeline/Put.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\SearchPipeline; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/SearchableSnapshots/Mount.php b/src/OpenSearch/Endpoints/SearchableSnapshots/Mount.php index af223c103..953b5969f 100644 --- a/src/OpenSearch/Endpoints/SearchableSnapshots/Mount.php +++ b/src/OpenSearch/Endpoints/SearchableSnapshots/Mount.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\SearchableSnapshots; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; class Mount extends AbstractEndpoint diff --git a/src/OpenSearch/Endpoints/SearchableSnapshots/RepositoryStats.php b/src/OpenSearch/Endpoints/SearchableSnapshots/RepositoryStats.php index 52d591476..ec31d661d 100644 --- a/src/OpenSearch/Endpoints/SearchableSnapshots/RepositoryStats.php +++ b/src/OpenSearch/Endpoints/SearchableSnapshots/RepositoryStats.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\SearchableSnapshots; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; class RepositoryStats extends AbstractEndpoint diff --git a/src/OpenSearch/Endpoints/Security/CreateActionGroup.php b/src/OpenSearch/Endpoints/Security/CreateActionGroup.php index 7d37ef765..eb19d9190 100644 --- a/src/OpenSearch/Endpoints/Security/CreateActionGroup.php +++ b/src/OpenSearch/Endpoints/Security/CreateActionGroup.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/CreateRole.php b/src/OpenSearch/Endpoints/Security/CreateRole.php index 0887b6c54..bc7d28f60 100644 --- a/src/OpenSearch/Endpoints/Security/CreateRole.php +++ b/src/OpenSearch/Endpoints/Security/CreateRole.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/CreateRoleMapping.php b/src/OpenSearch/Endpoints/Security/CreateRoleMapping.php index 7977caad4..a25c09128 100644 --- a/src/OpenSearch/Endpoints/Security/CreateRoleMapping.php +++ b/src/OpenSearch/Endpoints/Security/CreateRoleMapping.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/CreateTenant.php b/src/OpenSearch/Endpoints/Security/CreateTenant.php index a0a4db101..c922c9728 100644 --- a/src/OpenSearch/Endpoints/Security/CreateTenant.php +++ b/src/OpenSearch/Endpoints/Security/CreateTenant.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/CreateUser.php b/src/OpenSearch/Endpoints/Security/CreateUser.php index 0dff995e1..8dd069b37 100644 --- a/src/OpenSearch/Endpoints/Security/CreateUser.php +++ b/src/OpenSearch/Endpoints/Security/CreateUser.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/CreateUserLegacy.php b/src/OpenSearch/Endpoints/Security/CreateUserLegacy.php index a675e8bf8..7ced8dd08 100644 --- a/src/OpenSearch/Endpoints/Security/CreateUserLegacy.php +++ b/src/OpenSearch/Endpoints/Security/CreateUserLegacy.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/DeleteActionGroup.php b/src/OpenSearch/Endpoints/Security/DeleteActionGroup.php index 1e70edaa9..0c93e92b3 100644 --- a/src/OpenSearch/Endpoints/Security/DeleteActionGroup.php +++ b/src/OpenSearch/Endpoints/Security/DeleteActionGroup.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/DeleteDistinguishedName.php b/src/OpenSearch/Endpoints/Security/DeleteDistinguishedName.php index 430c24249..5290b9d2d 100644 --- a/src/OpenSearch/Endpoints/Security/DeleteDistinguishedName.php +++ b/src/OpenSearch/Endpoints/Security/DeleteDistinguishedName.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/DeleteRole.php b/src/OpenSearch/Endpoints/Security/DeleteRole.php index 86c97893c..b9932c2d9 100644 --- a/src/OpenSearch/Endpoints/Security/DeleteRole.php +++ b/src/OpenSearch/Endpoints/Security/DeleteRole.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/DeleteRoleMapping.php b/src/OpenSearch/Endpoints/Security/DeleteRoleMapping.php index 724c1ecae..64297b2e3 100644 --- a/src/OpenSearch/Endpoints/Security/DeleteRoleMapping.php +++ b/src/OpenSearch/Endpoints/Security/DeleteRoleMapping.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/DeleteTenant.php b/src/OpenSearch/Endpoints/Security/DeleteTenant.php index ae1d5e800..e2ccec174 100644 --- a/src/OpenSearch/Endpoints/Security/DeleteTenant.php +++ b/src/OpenSearch/Endpoints/Security/DeleteTenant.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/DeleteUser.php b/src/OpenSearch/Endpoints/Security/DeleteUser.php index 9fb9c60fe..a23e1b2e4 100644 --- a/src/OpenSearch/Endpoints/Security/DeleteUser.php +++ b/src/OpenSearch/Endpoints/Security/DeleteUser.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/DeleteUserLegacy.php b/src/OpenSearch/Endpoints/Security/DeleteUserLegacy.php index acb0efb5b..7e8104223 100644 --- a/src/OpenSearch/Endpoints/Security/DeleteUserLegacy.php +++ b/src/OpenSearch/Endpoints/Security/DeleteUserLegacy.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/GenerateUserToken.php b/src/OpenSearch/Endpoints/Security/GenerateUserToken.php index 34d83ecd3..a1612513b 100644 --- a/src/OpenSearch/Endpoints/Security/GenerateUserToken.php +++ b/src/OpenSearch/Endpoints/Security/GenerateUserToken.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/GenerateUserTokenLegacy.php b/src/OpenSearch/Endpoints/Security/GenerateUserTokenLegacy.php index 3bae4f2e5..073bc539c 100644 --- a/src/OpenSearch/Endpoints/Security/GenerateUserTokenLegacy.php +++ b/src/OpenSearch/Endpoints/Security/GenerateUserTokenLegacy.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/GetActionGroup.php b/src/OpenSearch/Endpoints/Security/GetActionGroup.php index 985f5fcd0..14675a2ed 100644 --- a/src/OpenSearch/Endpoints/Security/GetActionGroup.php +++ b/src/OpenSearch/Endpoints/Security/GetActionGroup.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/GetDistinguishedName.php b/src/OpenSearch/Endpoints/Security/GetDistinguishedName.php index 0aa1fffe2..491b3672e 100644 --- a/src/OpenSearch/Endpoints/Security/GetDistinguishedName.php +++ b/src/OpenSearch/Endpoints/Security/GetDistinguishedName.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/GetNodeCertificates.php b/src/OpenSearch/Endpoints/Security/GetNodeCertificates.php index 2a22e2f83..198640768 100644 --- a/src/OpenSearch/Endpoints/Security/GetNodeCertificates.php +++ b/src/OpenSearch/Endpoints/Security/GetNodeCertificates.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/GetRole.php b/src/OpenSearch/Endpoints/Security/GetRole.php index ecb6f2f18..169efc8ea 100644 --- a/src/OpenSearch/Endpoints/Security/GetRole.php +++ b/src/OpenSearch/Endpoints/Security/GetRole.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/GetRoleMapping.php b/src/OpenSearch/Endpoints/Security/GetRoleMapping.php index b460510a6..33a9b6340 100644 --- a/src/OpenSearch/Endpoints/Security/GetRoleMapping.php +++ b/src/OpenSearch/Endpoints/Security/GetRoleMapping.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/GetTenant.php b/src/OpenSearch/Endpoints/Security/GetTenant.php index abe420a0e..dd3862858 100644 --- a/src/OpenSearch/Endpoints/Security/GetTenant.php +++ b/src/OpenSearch/Endpoints/Security/GetTenant.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/GetUser.php b/src/OpenSearch/Endpoints/Security/GetUser.php index ac5d13cf0..7365f4d33 100644 --- a/src/OpenSearch/Endpoints/Security/GetUser.php +++ b/src/OpenSearch/Endpoints/Security/GetUser.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/GetUserLegacy.php b/src/OpenSearch/Endpoints/Security/GetUserLegacy.php index 0db4e6be1..ee9ef6fe8 100644 --- a/src/OpenSearch/Endpoints/Security/GetUserLegacy.php +++ b/src/OpenSearch/Endpoints/Security/GetUserLegacy.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/PatchActionGroup.php b/src/OpenSearch/Endpoints/Security/PatchActionGroup.php index 364749394..bd20b8127 100644 --- a/src/OpenSearch/Endpoints/Security/PatchActionGroup.php +++ b/src/OpenSearch/Endpoints/Security/PatchActionGroup.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/PatchDistinguishedName.php b/src/OpenSearch/Endpoints/Security/PatchDistinguishedName.php index 062f174dd..425b06e1c 100644 --- a/src/OpenSearch/Endpoints/Security/PatchDistinguishedName.php +++ b/src/OpenSearch/Endpoints/Security/PatchDistinguishedName.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/PatchRole.php b/src/OpenSearch/Endpoints/Security/PatchRole.php index ceda2f2a8..6a44f466d 100644 --- a/src/OpenSearch/Endpoints/Security/PatchRole.php +++ b/src/OpenSearch/Endpoints/Security/PatchRole.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/PatchRoleMapping.php b/src/OpenSearch/Endpoints/Security/PatchRoleMapping.php index e5727b302..baf00f732 100644 --- a/src/OpenSearch/Endpoints/Security/PatchRoleMapping.php +++ b/src/OpenSearch/Endpoints/Security/PatchRoleMapping.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/PatchTenant.php b/src/OpenSearch/Endpoints/Security/PatchTenant.php index 974e8b6db..c0d97f59f 100644 --- a/src/OpenSearch/Endpoints/Security/PatchTenant.php +++ b/src/OpenSearch/Endpoints/Security/PatchTenant.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/PatchUser.php b/src/OpenSearch/Endpoints/Security/PatchUser.php index 4da62f44b..594111625 100644 --- a/src/OpenSearch/Endpoints/Security/PatchUser.php +++ b/src/OpenSearch/Endpoints/Security/PatchUser.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Security/UpdateDistinguishedName.php b/src/OpenSearch/Endpoints/Security/UpdateDistinguishedName.php index 7b56d2f8f..6010b8631 100644 --- a/src/OpenSearch/Endpoints/Security/UpdateDistinguishedName.php +++ b/src/OpenSearch/Endpoints/Security/UpdateDistinguishedName.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Security; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Sm/CreatePolicy.php b/src/OpenSearch/Endpoints/Sm/CreatePolicy.php index 47125342a..c7055034a 100644 --- a/src/OpenSearch/Endpoints/Sm/CreatePolicy.php +++ b/src/OpenSearch/Endpoints/Sm/CreatePolicy.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Sm; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Sm/DeletePolicy.php b/src/OpenSearch/Endpoints/Sm/DeletePolicy.php index 83d3a3384..424f8cb86 100644 --- a/src/OpenSearch/Endpoints/Sm/DeletePolicy.php +++ b/src/OpenSearch/Endpoints/Sm/DeletePolicy.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Sm; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Sm/ExplainPolicy.php b/src/OpenSearch/Endpoints/Sm/ExplainPolicy.php index d48b223b2..88152d6cc 100644 --- a/src/OpenSearch/Endpoints/Sm/ExplainPolicy.php +++ b/src/OpenSearch/Endpoints/Sm/ExplainPolicy.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Sm; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Sm/GetPolicy.php b/src/OpenSearch/Endpoints/Sm/GetPolicy.php index 9ed27349b..ae68528b5 100644 --- a/src/OpenSearch/Endpoints/Sm/GetPolicy.php +++ b/src/OpenSearch/Endpoints/Sm/GetPolicy.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Sm; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Sm/StartPolicy.php b/src/OpenSearch/Endpoints/Sm/StartPolicy.php index 10252995f..8e312ec1e 100644 --- a/src/OpenSearch/Endpoints/Sm/StartPolicy.php +++ b/src/OpenSearch/Endpoints/Sm/StartPolicy.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Sm; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Sm/StopPolicy.php b/src/OpenSearch/Endpoints/Sm/StopPolicy.php index f8bdd18a6..e84121ef3 100644 --- a/src/OpenSearch/Endpoints/Sm/StopPolicy.php +++ b/src/OpenSearch/Endpoints/Sm/StopPolicy.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Sm; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Sm/UpdatePolicy.php b/src/OpenSearch/Endpoints/Sm/UpdatePolicy.php index ad0d39fd3..778aa01f3 100644 --- a/src/OpenSearch/Endpoints/Sm/UpdatePolicy.php +++ b/src/OpenSearch/Endpoints/Sm/UpdatePolicy.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Sm; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Snapshot/CleanupRepository.php b/src/OpenSearch/Endpoints/Snapshot/CleanupRepository.php index 94c9bfea1..14d998d54 100644 --- a/src/OpenSearch/Endpoints/Snapshot/CleanupRepository.php +++ b/src/OpenSearch/Endpoints/Snapshot/CleanupRepository.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Snapshot; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Snapshot/CloneSnapshot.php b/src/OpenSearch/Endpoints/Snapshot/CloneSnapshot.php index e9b0997c9..7745620f2 100644 --- a/src/OpenSearch/Endpoints/Snapshot/CloneSnapshot.php +++ b/src/OpenSearch/Endpoints/Snapshot/CloneSnapshot.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Snapshot; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Snapshot/Create.php b/src/OpenSearch/Endpoints/Snapshot/Create.php index f296b2ace..617546350 100644 --- a/src/OpenSearch/Endpoints/Snapshot/Create.php +++ b/src/OpenSearch/Endpoints/Snapshot/Create.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Snapshot; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Snapshot/CreateRepository.php b/src/OpenSearch/Endpoints/Snapshot/CreateRepository.php index c1974fa45..60a726e51 100644 --- a/src/OpenSearch/Endpoints/Snapshot/CreateRepository.php +++ b/src/OpenSearch/Endpoints/Snapshot/CreateRepository.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Snapshot; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Snapshot/Delete.php b/src/OpenSearch/Endpoints/Snapshot/Delete.php index 876490e16..2c64f745f 100644 --- a/src/OpenSearch/Endpoints/Snapshot/Delete.php +++ b/src/OpenSearch/Endpoints/Snapshot/Delete.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Snapshot; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Snapshot/DeleteRepository.php b/src/OpenSearch/Endpoints/Snapshot/DeleteRepository.php index 8e84c4888..9b88c8603 100644 --- a/src/OpenSearch/Endpoints/Snapshot/DeleteRepository.php +++ b/src/OpenSearch/Endpoints/Snapshot/DeleteRepository.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Snapshot; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Snapshot/Get.php b/src/OpenSearch/Endpoints/Snapshot/Get.php index 51fc607b2..7d15a65d8 100644 --- a/src/OpenSearch/Endpoints/Snapshot/Get.php +++ b/src/OpenSearch/Endpoints/Snapshot/Get.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Snapshot; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Snapshot/Restore.php b/src/OpenSearch/Endpoints/Snapshot/Restore.php index ca6d614e1..ee5965f8a 100644 --- a/src/OpenSearch/Endpoints/Snapshot/Restore.php +++ b/src/OpenSearch/Endpoints/Snapshot/Restore.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Snapshot; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Snapshot/VerifyRepository.php b/src/OpenSearch/Endpoints/Snapshot/VerifyRepository.php index e3d765ed7..b63e4f972 100644 --- a/src/OpenSearch/Endpoints/Snapshot/VerifyRepository.php +++ b/src/OpenSearch/Endpoints/Snapshot/VerifyRepository.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Snapshot; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Tasks/Get.php b/src/OpenSearch/Endpoints/Tasks/Get.php index e6166abfc..882b20671 100644 --- a/src/OpenSearch/Endpoints/Tasks/Get.php +++ b/src/OpenSearch/Endpoints/Tasks/Get.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints\Tasks; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/TermVectors.php b/src/OpenSearch/Endpoints/TermVectors.php index f044f3ad9..989ddd02d 100644 --- a/src/OpenSearch/Endpoints/TermVectors.php +++ b/src/OpenSearch/Endpoints/TermVectors.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Transforms/Delete.php b/src/OpenSearch/Endpoints/Transforms/Delete.php index 1eb4d8e0e..e0072d976 100644 --- a/src/OpenSearch/Endpoints/Transforms/Delete.php +++ b/src/OpenSearch/Endpoints/Transforms/Delete.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Transforms; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Transforms/Explain.php b/src/OpenSearch/Endpoints/Transforms/Explain.php index 118d87f45..8e86fe613 100644 --- a/src/OpenSearch/Endpoints/Transforms/Explain.php +++ b/src/OpenSearch/Endpoints/Transforms/Explain.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Transforms; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Transforms/Get.php b/src/OpenSearch/Endpoints/Transforms/Get.php index 2c682bb2f..32f88b46d 100644 --- a/src/OpenSearch/Endpoints/Transforms/Get.php +++ b/src/OpenSearch/Endpoints/Transforms/Get.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Transforms; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Transforms/Put.php b/src/OpenSearch/Endpoints/Transforms/Put.php index b5fc4e1e4..c01ffb93f 100644 --- a/src/OpenSearch/Endpoints/Transforms/Put.php +++ b/src/OpenSearch/Endpoints/Transforms/Put.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Transforms; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Transforms/Start.php b/src/OpenSearch/Endpoints/Transforms/Start.php index 9792ae12d..5ced79c7c 100644 --- a/src/OpenSearch/Endpoints/Transforms/Start.php +++ b/src/OpenSearch/Endpoints/Transforms/Start.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Transforms; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Transforms/Stop.php b/src/OpenSearch/Endpoints/Transforms/Stop.php index d26b6dbb4..ce55d21a6 100644 --- a/src/OpenSearch/Endpoints/Transforms/Stop.php +++ b/src/OpenSearch/Endpoints/Transforms/Stop.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Transforms; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Update.php b/src/OpenSearch/Endpoints/Update.php index 5b39b54f5..acceaede5 100644 --- a/src/OpenSearch/Endpoints/Update.php +++ b/src/OpenSearch/Endpoints/Update.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/UpdateByQuery.php b/src/OpenSearch/Endpoints/UpdateByQuery.php index 456234750..42ab22333 100644 --- a/src/OpenSearch/Endpoints/UpdateByQuery.php +++ b/src/OpenSearch/Endpoints/UpdateByQuery.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/UpdateByQueryRethrottle.php b/src/OpenSearch/Endpoints/UpdateByQueryRethrottle.php index 72b268ca7..0a13da2b7 100644 --- a/src/OpenSearch/Endpoints/UpdateByQueryRethrottle.php +++ b/src/OpenSearch/Endpoints/UpdateByQueryRethrottle.php @@ -21,7 +21,7 @@ namespace OpenSearch\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Wlm/DeleteQueryGroup.php b/src/OpenSearch/Endpoints/Wlm/DeleteQueryGroup.php index 8b63c9539..521221955 100644 --- a/src/OpenSearch/Endpoints/Wlm/DeleteQueryGroup.php +++ b/src/OpenSearch/Endpoints/Wlm/DeleteQueryGroup.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Wlm; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Endpoints/Wlm/UpdateQueryGroup.php b/src/OpenSearch/Endpoints/Wlm/UpdateQueryGroup.php index 49e32ba83..683b6723e 100644 --- a/src/OpenSearch/Endpoints/Wlm/UpdateQueryGroup.php +++ b/src/OpenSearch/Endpoints/Wlm/UpdateQueryGroup.php @@ -15,7 +15,7 @@ namespace OpenSearch\Endpoints\Wlm; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Endpoints\AbstractEndpoint; /** diff --git a/src/OpenSearch/Exception/BadMethodCallException.php b/src/OpenSearch/Exception/BadMethodCallException.php new file mode 100644 index 000000000..79198228d --- /dev/null +++ b/src/OpenSearch/Exception/BadMethodCallException.php @@ -0,0 +1,16 @@ +getErrorMessage($code), $code, $previous); + } + + public function getData(): ?string + { + return $this->data; + } + + /** + * Gets the JSON error message for the given error code. + */ + private function getErrorMessage(int $code): string + { + return match ($code) { + JSON_ERROR_DEPTH => 'The maximum stack depth has been exceeded', + JSON_ERROR_STATE_MISMATCH => 'Invalid or malformed JSON', + JSON_ERROR_CTRL_CHAR => 'Control character error, possibly incorrectly encoded', + JSON_ERROR_SYNTAX => 'Syntax error', + JSON_ERROR_UTF8 => 'Malformed UTF-8 characters, possibly incorrectly encoded', + JSON_ERROR_RECURSION => 'One or more recursive references in the value to be encoded', + JSON_ERROR_INF_OR_NAN => 'One or more NAN or INF values in the value to be encoded', + JSON_ERROR_UNSUPPORTED_TYPE => 'A value of a type that cannot be encoded was given', + + // JSON_ERROR_* constant values that are available on PHP >= 7.0 + 9 => 'Decoding of value would result in invalid PHP property name', //JSON_ERROR_INVALID_PROPERTY_NAME + 10 => 'Attempted to decode nonexistent UTF-16 code-point',//JSON_ERROR_UTF16 + default => throw new \InvalidArgumentException("Encountered unknown JSON error code: [{$code}]"), + }; + } +} diff --git a/src/OpenSearch/Exception/RuntimeException.php b/src/OpenSearch/Exception/RuntimeException.php new file mode 100644 index 000000000..b96ea6e54 --- /dev/null +++ b/src/OpenSearch/Exception/RuntimeException.php @@ -0,0 +1,16 @@ +getCode(), $data, []); + throw new JsonException($e->getCode(), $data, $e); } } } diff --git a/tests/ClientIntegrationTest.php b/tests/ClientIntegrationTest.php index b2456c202..bad92229e 100644 --- a/tests/ClientIntegrationTest.php +++ b/tests/ClientIntegrationTest.php @@ -24,9 +24,9 @@ use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Psr7\HttpFactory; use OpenSearch\Client; -use OpenSearch\Common\Exceptions\RuntimeException; use OpenSearch\EndpointFactory; use OpenSearch\Exception\NotFoundHttpException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\RequestFactory; use OpenSearch\Serializers\SmartSerializer; use OpenSearch\TransportFactory; diff --git a/tests/ClientTest.php b/tests/ClientTest.php index 52393e947..4bc25b4ea 100644 --- a/tests/ClientTest.php +++ b/tests/ClientTest.php @@ -22,9 +22,9 @@ namespace OpenSearch\Tests; use OpenSearch\Client; -use OpenSearch\Common\Exceptions\RuntimeException; use OpenSearch\EndpointFactoryInterface; use OpenSearch\Endpoints\Delete; +use OpenSearch\Exception\RuntimeException; use OpenSearch\TransportInterface; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; diff --git a/tests/Endpoints/AbstractEndpointTest.php b/tests/Endpoints/AbstractEndpointTest.php index 5c28ca69a..98de806fb 100644 --- a/tests/Endpoints/AbstractEndpointTest.php +++ b/tests/Endpoints/AbstractEndpointTest.php @@ -23,6 +23,7 @@ use OpenSearch\EndpointInterface; use OpenSearch\Endpoints\AbstractEndpoint; +use OpenSearch\Exception\UnexpectedValueException; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; @@ -55,7 +56,7 @@ public function testInvalidParamsCauseErrorsWhenProvidedToSetParams(array $param ->method('getParamWhitelist') ->willReturn(['one', 'two']); - $this->expectException(\OpenSearch\Common\Exceptions\UnexpectedValueException::class); + $this->expectException(UnexpectedValueException::class); $this->endpoint->setParams($params); } diff --git a/tests/Endpoints/CreatePitTest.php b/tests/Endpoints/CreatePitTest.php index 779f68ee6..a55bf4269 100644 --- a/tests/Endpoints/CreatePitTest.php +++ b/tests/Endpoints/CreatePitTest.php @@ -21,8 +21,8 @@ namespace OpenSearch\Tests\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; use OpenSearch\Endpoints\CreatePit; +use OpenSearch\Exception\RuntimeException; class CreatePitTest extends \PHPUnit\Framework\TestCase { diff --git a/tests/Endpoints/CreateTest.php b/tests/Endpoints/CreateTest.php index c5e7cfd60..9ad1d0379 100644 --- a/tests/Endpoints/CreateTest.php +++ b/tests/Endpoints/CreateTest.php @@ -21,8 +21,8 @@ namespace OpenSearch\Tests\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; use OpenSearch\Endpoints\Create; +use OpenSearch\Exception\RuntimeException; class CreateTest extends \PHPUnit\Framework\TestCase { diff --git a/tests/Endpoints/RefreshSearchAnalyzersTest.php b/tests/Endpoints/RefreshSearchAnalyzersTest.php index e8e0b6466..70cc68327 100644 --- a/tests/Endpoints/RefreshSearchAnalyzersTest.php +++ b/tests/Endpoints/RefreshSearchAnalyzersTest.php @@ -21,8 +21,8 @@ namespace OpenSearch\Tests\Endpoints; -use OpenSearch\Common\Exceptions\RuntimeException; use OpenSearch\Endpoints\Indices\RefreshSearchAnalyzers; +use OpenSearch\Exception\RuntimeException; class RefreshSearchAnalyzersTest extends \PHPUnit\Framework\TestCase { diff --git a/tests/Endpoints/SqlQueryEndpointTest.php b/tests/Endpoints/SqlQueryEndpointTest.php index 793524db6..5f94c4666 100644 --- a/tests/Endpoints/SqlQueryEndpointTest.php +++ b/tests/Endpoints/SqlQueryEndpointTest.php @@ -21,8 +21,8 @@ namespace OpenSearch\Tests\Endpoints; -use OpenSearch\Common\Exceptions\UnexpectedValueException; use OpenSearch\Endpoints\Sql\Query; +use OpenSearch\Exception\UnexpectedValueException; use PHPUnit\Framework\TestCase; /** diff --git a/tests/LegacyClientIntegrationTest.php b/tests/LegacyClientIntegrationTest.php index e6ad72324..abb21e7b4 100644 --- a/tests/LegacyClientIntegrationTest.php +++ b/tests/LegacyClientIntegrationTest.php @@ -23,9 +23,8 @@ use OpenSearch\Client; use OpenSearch\ClientBuilder; -use OpenSearch\Common\Exceptions\BadRequest400Exception; use OpenSearch\Common\Exceptions\Missing404Exception; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Tests\ClientBuilder\ArrayLogger; use Psr\Log\LogLevel; diff --git a/tests/Namespaces/SecurityNamespaceTest.php b/tests/Namespaces/SecurityNamespaceTest.php index 55c69bcaa..15c0e60dd 100644 --- a/tests/Namespaces/SecurityNamespaceTest.php +++ b/tests/Namespaces/SecurityNamespaceTest.php @@ -15,8 +15,8 @@ namespace OpenSearch\Tests\Namespaces; -use OpenSearch\Common\Exceptions\RuntimeException; use OpenSearch\EndpointFactory; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Namespaces\SecurityNamespace; use OpenSearch\TransportInterface; use PHPUnit\Framework\MockObject\MockObject; diff --git a/tests/Serializers/SmartSerializerTest.php b/tests/Serializers/SmartSerializerTest.php index 9b7696629..3023901a5 100644 --- a/tests/Serializers/SmartSerializerTest.php +++ b/tests/Serializers/SmartSerializerTest.php @@ -21,14 +21,14 @@ namespace OpenSearch\Tests\Serializers; -use OpenSearch\Common\Exceptions\Serializer\JsonErrorException; +use OpenSearch\Exception\JsonException; use OpenSearch\Serializers\SmartSerializer; -use Mockery as m; use PHPUnit\Framework\TestCase; /** * Class SmartSerializerTest * + * @coversDefaultClass \OpenSearch\Serializers\SmartSerializer */ class SmartSerializerTest extends TestCase { @@ -43,14 +43,19 @@ public function setUp(): void } /** - * @requires PHP 7.3 - * @see https://github.com/elastic/elasticsearch-php/issues/1012 + * @ */ - public function testThrowJsonErrorException() + public function testThrowJsonException(): void { - $this->expectException(JsonErrorException::class); - $this->expectExceptionCode(JSON_ERROR_SYNTAX); - - $this->serializer->deserialize('{ "foo" : bar" }', []); + $data = '{ "foo" : bar" }'; + try { + $this->serializer->deserialize($data, []); + $this->fail('An expected exception has not been raised.'); + } catch (JsonException $e) { + $this->assertSame(JSON_ERROR_SYNTAX, $e->getCode()); + $this->assertSame('Syntax error', $e->getMessage()); + $this->assertSame($data, $e->getData()); + } } + } diff --git a/util/Endpoint.php b/util/Endpoint.php index 4b7fc1899..008b303e2 100644 --- a/util/Endpoint.php +++ b/util/Endpoint.php @@ -284,7 +284,7 @@ private function extractUrl(array $paths): string $this->name, str_replace(':part', $part, $skeleton) ); - $this->addNamespace('OpenSearch\Common\Exceptions\RuntimeException'); + $this->addNamespace('OpenSearch\Exception\RuntimeException'); } else { $params .= sprintf("%s\$%s = \$this->%s ?? null;", $tab8, $part, $part); } @@ -346,7 +346,7 @@ private function extractUrl(array $paths): string $tab8, $this->apiName ); - $this->addNamespace('OpenSearch\Common\Exceptions\RuntimeException'); + $this->addNamespace('OpenSearch\Exception\RuntimeException'); } return $checkPart . $params . $deprecated . $urls . $else; } diff --git a/util/GenerateEndpoints.php b/util/GenerateEndpoints.php index 4d41fe3b2..35d00c2f6 100644 --- a/util/GenerateEndpoints.php +++ b/util/GenerateEndpoints.php @@ -21,7 +21,7 @@ */ use OpenSearch\Client; use OpenSearch\Common\Exceptions\NoNodesAvailableException; -use OpenSearch\Common\Exceptions\RuntimeException; +use OpenSearch\Exception\RuntimeException; use OpenSearch\Util\ClientEndpoint; use OpenSearch\Util\Endpoint; use OpenSearch\Util\NamespaceEndpoint;