export class CustomNextError extends Error { statusCode : number ; title : string ; constructor ( statusCode , title ? , message ? ) { super ( message ?? title ) ; this . statusCode = statusCode ; this . title = title ; } }