public DateTimeParseException(String message,CharSequence parsedData,int errorIndex){
  super(message);
  this.parsedString=parsedData.toString();
  this.errorIndex=errorIndex;
}

public DateTimeParseException ( String message , CharSequence parsedData , int errorIndex ) { super ( message ) ; this . parsedString = parsedData . toString ( ) ; this . errorIndex = errorIndex ; }
constructs a new exception with the specified message .
