Skip to content

Commit 66fb2a0

Browse files
committed
readme
1 parent 5816ed5 commit 66fb2a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,7 @@ api.use(errorHandler1,errorHandler2)
13101310

13111311
### Error Types
13121312

1313-
Lambda API provides several different types of errors that can be used by your application. `RouteError`, `MethodError`, `ResponseError`, and `FileError` will all be passed to your error middleware. `ConfigurationError`s will throw an exception when you attempt to `.run()` your route and can be caught in a `try/catch` block. Most error types contain additional properties that further detail the issue.
1313+
Lambda API provides several different types of errors that can be used by your application. `ApiError`, `RouteError`, `MethodError`, `ResponseError`, and `FileError` will all be passed to your error middleware. `ConfigurationError`s will throw an exception when you attempt to `.run()` your route and can be caught in a `try/catch` block. Most error types contain additional properties that further detail the issue.
13141314

13151315
```javascript
13161316
const errorHandler = (err,req,res,next) => {

0 commit comments

Comments
 (0)