Skip to main content

Exception Classes Added in Node SDKs

· One min read

Exception Classes support has been added to Node SDKs. Generate your SDK again to get this new feature!

Exception classes allow you to define custom error models. This means that if you want specific error codes to be handled in a certain way (such as displaying a custom error message), you can add an exception class and define the behavior accordingly. If you are using custom error codes in your API, these can also be handled with exception classes. You can generate your SDK again to get the exception classes in your SDK which are defined in your API Description.