export class pingError extends Error { code ? : string ; constructor ( message , code ? ) { super ( message ) ; this . name = 'pingError' ; this . code = code ; } } export class ipError extends pingError { constructor ( message ) { super ( message ) ; this . name = 'ipError' ; } } export class supportedError extends pingError { constructor ( message ) { super ( message ) ; this . name = 'platformNotSupportedError' ; } }