export class ApiError extends Error { customMessage = '' ; code = - 1 ; constructor ( message , customMessage , code ) { super ( message ) ; this . name = 'ApiError' ; this . customMessage = customMessage ; this . code = code ; } }