import { BaseException , ErrorCodeType , MetadataType } from './BaseException' ; import { IError , ECodes } from './code.types' ; export const INVALID_ARGUMENT = { code : ECodes . INVALID_ARGUMENT , message : 'Invalid argument' , } ; export const USER_ID_REQUIRED = { code : ECodes . USER_ID_REQUIRED , message : 'User id is required' , } ; export class InvalidArgumentException extends BaseException { constructor ( customCode ? , metadata = { } ) { super ( customCode || INVALID_ARGUMENT , metadata ) ; } }