summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/postgresql/geometric/PGcircle.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/jdbc/postgresql/geometric/PGcircle.java')
-rw-r--r--src/interfaces/jdbc/postgresql/geometric/PGcircle.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/jdbc/postgresql/geometric/PGcircle.java b/src/interfaces/jdbc/postgresql/geometric/PGcircle.java
index 105ed91a2f0..016e7013310 100644
--- a/src/interfaces/jdbc/postgresql/geometric/PGcircle.java
+++ b/src/interfaces/jdbc/postgresql/geometric/PGcircle.java
@@ -67,13 +67,13 @@ public class PGcircle extends PGobject implements Serializable,Cloneable
{
PGtokenizer t = new PGtokenizer(PGtokenizer.removeAngle(s),',');
if(t.getSize() != 2)
- throw new SQLException("conversion of circle failed - "+s);
+ throw new PSQLException("postgresql.geo.circle",s);
try {
center = new PGpoint(t.getToken(0));
radius = Double.valueOf(t.getToken(1)).doubleValue();
} catch(NumberFormatException e) {
- throw new SQLException("conversion of circle failed - "+s+" - +"+e.toString());
+ throw new PSQLException("postgresql.geo.circle",e);
}
}