Skip to content

Commit 6717e49

Browse files
authored
Update README.md
1 parent e03bd2a commit 6717e49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Changes from 1.0.3 -> 2.0.0 are listed below
142142
- This affects any development that uses the `message` or `isSuccessful` from response object of APIs that is Result object.
143143

144144
**How should I update my code?**
145-
- If you still need to use `message` it will be there in the custom exception and could be raised `isSuccessful` properties in your own code from status code with `httpStatusCode` that is coming in the responseMetaData with `getResponseMetaData()` of response object or custom exception.
145+
- If you still need to use `message` it will be there in the custom exceptions that could be raised when calling the various API methods. `isSuccessful` can be derived to be `true` if the API method doesn't throw any exception.
146146

147147

148148
## URL generation
@@ -411,7 +411,7 @@ System.out.println(result.getResponseMetaData().getMap());
411411

412412
If the upload is successful, result will be there as an object of `Result` class that contains the same all the parameters received from ImageKit's servers.
413413

414-
If the upload fails, custom exception getting thrown and by doinf`getMessage()` will contain the same error message received from ImageKit's servers.
414+
If the upload fails, custom exception is thrown and `getMessage()` can be called to get the error message received from ImageKit's servers.
415415

416416

417417
## File Management

0 commit comments

Comments
 (0)