# Decorator 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

Other topics