UNPKG

@tsed/platform-multer

Version:
17 lines (16 loc) 462 B
import { BadRequest } from "@tsed/exceptions"; /** * Exception thrown when a Multer error occurs during file upload operations. * Extends the BadRequest exception with Multer-specific properties. */ export class MulterException extends BadRequest { /** * Creates a new MulterException * @param er - The original Multer error */ constructor(er) { super(er.message); this.origin = er; this.name = er.code; } }