Skip to content

Commit

Permalink
Readme.md typo Expecption -> Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Weakue committed Oct 11, 2021
1 parent 8cc8bbe commit b509911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ You can get the HTTP status code from `httpResponse` property, and more details
// apiResponse, _, _ := ...
```

In order to be able to access our generated `Expecption` models, you will have to do a little bit of type casting.
In order to be able to access our generated `Exception` models, you will have to do a little bit of type casting.
Methods provided within `ServiceException` object are `GetMessageId()` and `GetText()` referring to the nature of the exception.
Withing the `_nethttp.Response` response field (in example labeled as `httpResponse`) you can find pretty much everything that is referring to the HTTP status, e.g. `Status`, `StatusCode`, `Body`, `Header`, etc.

Expand Down

0 comments on commit b509911

Please sign in to comment.