UNPKG

@tegain/vue-cli-plugin-mevn

Version:

Add MEVN REST API boilerplate to your Vue-CLI project

12 lines (10 loc) 321 B
import { HttpException } from './http.exception'; import { HttpStatus } from '../http-status'; export class NotFoundException extends HttpException { constructor (message, error = 'Not found') { super( HttpException.createHttpExceptionBody(message, error, HttpStatus.NOT_FOUND), HttpStatus.NOT_FOUND, ); } }