| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
package org.locationtech.jts.io; |
| 15 |
|
| 16 |
/** |
| 17 |
* Thrown by a <code>WKTReader</code> when a parsing problem occurs. |
| 18 |
* |
| 19 |
*@version 1.7 |
| 20 |
*/ |
| 21 |
public class ParseException extends Exception { |
| 22 |
|
| 23 |
/** |
| 24 |
* Creates a <code>ParseException</code> with the given detail message. |
| 25 |
* |
| 26 |
*@param message a description of this <code>ParseException</code> |
| 27 |
*/ |
| 28 |
public ParseException(String message) { |
| 29 |
super(message); |
| 30 |
} |
| 31 |
|
| 32 |
/** |
| 33 |
* Creates a <code>ParseException</code> with <code>e</code>s detail message. |
| 34 |
* |
| 35 |
*@param e an exception that occurred while a <code>WKTReader</code> was |
| 36 |
* parsing a Well-known Text string |
| 37 |
*/ |
| 38 |
public ParseException(Exception e) { |
| 39 |
this(e.toString(), e); |
| 40 |
} |
| 41 |
|
| 42 |
/** |
| 43 |
* Creates a <code>ParseException</code> with <code>e</code>s detail message. |
| 44 |
* |
| 45 |
*@param message a description of this <code>ParseException</code> |
| 46 |
*@param e a throwable that occurred while a com.vividsolutions.jts.io reader was |
| 47 |
* parsing a string representation |
| 48 |
*/ |
| 49 |
public ParseException(String message, Throwable e) { |
| 50 |
super(message, e); |
| 51 |
} |
| 52 |
} |
| 53 |
|
| 54 |
|
| 55 |
|