export class ParseError { public message : string ; constructor ( data ) { const errorData = this . parseString ( data ) ; this . message = errorData [ 1 ] ; } private parseString ( eventDataString ) { return eventDataString . split ( ',' ) ; } }