Code example for ParseException

0
 
  public String parse(CharSequence text) throws ParseException {
    parseCalled = true;
     
    if (throwException) {
      throw new ParseException("mock exception", 0);
    } else { 
      return text.toString();
    } 
  }  
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE