@@ -18,15 +18,16 @@ This driver uses semantic versioning:
1818
1919### Changed
2020
21- - Errors encountered before a request completes are now wrapped in a ` NetworkError `
21+ - Errors encountered before a request completes are now wrapped in a
22+ ` NetworkError ` or a subclass thereof
2223
2324 This should help making it easier to diagnose network issues and distinguish
2425 the relevant error conditions.
2526
2627 The originating error can still be accessed using the ` cause ` property of the
2728 ` NetworkError ` error.
2829
29- - ` HttpError ` now extends the ` NetworkError ` type
30+ - ` HttpError ` now extends the ` NetworkError ` class
3031
3132 This allows treating all non-` ArangoError ` errors as one category of errors,
3233 even when there is no server response available.
@@ -85,7 +86,7 @@ This driver uses semantic versioning:
8586 If the ` onError ` callback throws an error or returns a promise that is
8687 rejected, that error will be thrown instead.
8788
88- - Added ` NetworkError ` error type
89+ - Added ` NetworkError ` class
8990
9091 This is the common base class for all errors (including ` HttpError ` ) that
9192 occur while making a request. The originating error can be accessed using the
@@ -96,17 +97,17 @@ This driver uses semantic versioning:
9697 do not extend ` NetworkError ` but may wrap an underlying error, which can
9798 be accessed using the ` cause ` property.
9899
99- - Added ` ResponseTimeoutError ` error type
100+ - Added ` ResponseTimeoutError ` class
100101
101102 This error extends ` NetworkError ` and is thrown when a request deliberately
102103 times out using the ` timeout ` option.
103104
104- - Added ` RequestAbortedError ` error type
105+ - Added ` RequestAbortedError ` class
105106
106107 This error extends ` NetworkError ` and is thrown when a request is aborted
107108 by using the ` db.close ` method.
108109
109- - Added ` FetchFailedError ` error type
110+ - Added ` FetchFailedError ` class
110111
111112 This error extends ` NetworkError ` and is thrown when a request fails because
112113 the underlying ` fetch ` call fails (usually with a ` TypeError ` ).
@@ -118,7 +119,7 @@ This driver uses semantic versioning:
118119 In browsers the root cause is usually not exposed directly but can often
119120 be diagnosed by examining the developer console or network tab.
120121
121- - Added ` PropagationTimeoutError ` error type
122+ - Added ` PropagationTimeoutError ` class
122123
123124 This error does not extend ` NetworkError ` but wraps the most recent error
124125 encountered while waiting for replication, which can be accessed using the
@@ -130,7 +131,7 @@ This driver uses semantic versioning:
130131 This type replaces the previously internal ` ArangojsResponse ` type and
131132 extends the native ` Response ` type with additional properties.
132133
133- - Added optional ` request ` property to ` ArangoError `
134+ - Added optional ` ArangoError# request` property
134135
135136 This property is always present if the error has a ` response ` property. In
136137 normal use this should always be the case.
@@ -152,17 +153,17 @@ This driver uses semantic versioning:
152153 There was previously no way to pass options to the ` truncate ` method.
153154
154155- Added ` database ` property to ` Analyzer ` , ` ArrayCursor ` , ` BatchedArrayCursor ` ,
155- ` Collection ` , ` Graph ` , ` Job ` , ` Route ` , ` Transaction ` and ` View ` types (DE-935)
156+ ` Collection ` , ` Graph ` , ` Job ` , ` Route ` , ` Transaction ` and ` View ` (DE-935)
156157
157158 This property can be used to access the database instance a given object
158159 belongs to.
159160
160- - Added ` headers ` and ` path ` properties to ` Route ` type
161+ - Added ` Route# headers` and ` Route# path` properties
161162
162163 These properties can be used to access the headers and path used when creating
163164 the route.
164165
165- - Added ` id ` property to ` ArrayCursor ` and ` BatchedArrayCursor ` types (DE-936)
166+ - Added ` ArrayCursor# id` and ` BatchedArrayCursor#id ` properties (DE-936)
166167
167168 This property can be used to access the ID of the cursor.
168169
0 commit comments