From 232e019b785e0d443fbc7d73ae6b3e33eb7a1aaf Mon Sep 17 00:00:00 2001 From: Jakob Hahn Date: Fri, 5 Apr 2024 17:12:00 +0200 Subject: [PATCH] adjust upgrading.md Signed-off-by: Jakob Hahn --- UPGRADING.md | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/UPGRADING.md b/UPGRADING.md index c80a6f014..3328ebd07 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -1,14 +1,35 @@ - [Upgrading Opensearch GO Client](#upgrading-opensearch-go-client) - - [Upgraading to >= 3.0.0](#upgrading-to->=-3.0.0) + - [Upgrading to >= 3.2.0](#upgrading-to->=-3.2.0) + - [error types](#error-types) + - [Upgrading to >= 3.0.0](#upgrading-to->=-3.0.0) - [client creation](#client-creation) - [requests](#requests) - [responses](#responses) - [error handing](#error-handling) - - [Upgraading to >= 2.3.0](#upgrading-to->=-2.3.0) + - [Upgrading to >= 2.3.0](#upgrading-to->=-2.3.0) - [snapshot delete](#snapshot-delete) # Upgrading Opensearch GO Client +## Upgrading to >= 3.2.0 + +Version 3.2.0 moved the error types, added with 3.0.0, from opensearchapi to opensearch, renamed them and added new error types. + +### Error Types + +Before 3.2.0: +Error types: +- `opensearchapi.Error` +- `opensearchapi.StringError` + +With 3.2.0: +Error types +- `opensearch.Error` +- `opensearch.StringError` +- `opensearch.ReasonError` +- `opensearch.MessageError` +- `opensearch.StructError` (which was the `opensearchapi.Error`) + ## Upgrading to >= 3.0.0 Version 3.0.0 is a major refactor of the client.