@@ -28,13 +28,13 @@ details") to use in an HTTP response.
2828import modernErrors from ' modern-errors'
2929import modernErrorsHttp from ' modern-errors-http'
3030
31- export const AnyError = modernErrors ([modernErrorsHttp])
31+ export const BaseError = modernErrors ([modernErrorsHttp])
3232```
3333
3434[ Configuring] ( #configuration ) error fields.
3535
3636``` js
37- export const AuthError = AnyError .subclass (' AuthError' , {
37+ export const AuthError = BaseError .subclass (' AuthError' , {
3838 http: {
3939 type: ' https://example.com/probs/auth' ,
4040 status: 401 ,
@@ -156,14 +156,14 @@ set to an empty object.
156156 [ ` modernErrors() ` ] ( https://github.com/ehmicky/modern-errors#modernerrorsplugins-options )
157157
158158``` js
159- export const AnyError = modernErrors (plugins, { http: { ... options } })
159+ export const BaseError = modernErrors (plugins, { http: { ... options } })
160160```
161161
162162- Any error of multiple classes: using
163- [ ` ErrorClass.subclass() ` ] ( https://github.com/ehmicky/modern-errors#anyerrorsubclassname -options )
163+ [ ` ErrorClass.subclass() ` ] ( https://github.com/ehmicky/modern-errors#baseerrorsubclassname -options )
164164
165165``` js
166- export const SharedError = AnyError .subclass (' SharedError' , {
166+ export const SharedError = BaseError .subclass (' SharedError' , {
167167 http: { ... options },
168168})
169169
@@ -172,10 +172,10 @@ export const InputError = SharedError.subclass('InputError')
172172```
173173
174174- Any error of a specific class: second argument to
175- [ ` AnyError .subclass()` ] ( https://github.com/ehmicky/modern-errors#anyerrorsubclassname -options )
175+ [ ` BaseError .subclass()` ] ( https://github.com/ehmicky/modern-errors#baseerrorsubclassname -options )
176176
177177``` js
178- export const AuthError = AnyError .subclass (' AuthError' , {
178+ export const AuthError = BaseError .subclass (' AuthError' , {
179179 http: { ... options },
180180})
181181```
0 commit comments