# SocketErr Decorator
Module | import { SocketErr } from "@tsed/socketio" |
---|---|
Source | /packages/socketio/src/decorators/socketErr.ts |
# Overview
function SocketErr(target: any, propertyKey: string, index: number): any;
# Description
Inject the error in the parameters
# Example
@SocketMiddlewareError()
export class MyMiddleware {
myMethod(@SocketErr err: any, @Args() arguments: any[]) {
}
}
1
2
3
4
5
6
7
2
3
4
5
6
7
- Session & cookies
- Passport.js
- TypeORM
- Mongoose
- GraphQL
- Socket.io
- Swagger
- AJV
- Multer
- Serve static files
- Templating
- Throw HTTP Exceptions
- Customize 404
- AWS
- Jest
- Seq
- Controllers
- Providers
- Model
- Converters
- Middlewares
- Pipes
- Interceptors
- Authentication
- Hooks
- Injection scopes
- Custom providers
- Custom endpoint decorator
- Testing