Skip to content

Custom errors for TS client

Compare
Choose a tag to compare
@arucard21 arucard21 released this 06 Jan 14:59
· 18 commits to master since this release

The TypeScript client now throws custom errors that correspond to the HTTP status code when an error occurs. This provides more details about the actual nature of the error that occurred which should allow for better error handling. The custom errors contains a cause field that contains more information about exactly why that type of error might have occurred. These custom errors were modeled after their Java Exception counterparts provided in JAX-RS.