summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/org/postgresql/geometric/PGcircle.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/geometric/PGcircle.java')
-rw-r--r--src/interfaces/jdbc/org/postgresql/geometric/PGcircle.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/geometric/PGcircle.java b/src/interfaces/jdbc/org/postgresql/geometric/PGcircle.java
index 43f008a510..1b0e562109 100644
--- a/src/interfaces/jdbc/org/postgresql/geometric/PGcircle.java
+++ b/src/interfaces/jdbc/org/postgresql/geometric/PGcircle.java
@@ -7,7 +7,7 @@
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/geometric/Attic/PGcircle.java,v 1.5 2003/05/29 04:39:48 barry Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/geometric/Attic/PGcircle.java,v 1.6 2003/09/13 04:02:14 barry Exp $
*
*-------------------------------------------------------------------------
*/
@@ -16,6 +16,8 @@ package org.postgresql.geometric;
import org.postgresql.util.PGobject;
import org.postgresql.util.PGtokenizer;
import org.postgresql.util.PSQLException;
+import org.postgresql.util.PSQLState;
+
import java.io.Serializable;
import java.sql.SQLException;
@@ -78,7 +80,7 @@ public class PGcircle extends PGobject implements Serializable, Cloneable
{
PGtokenizer t = new PGtokenizer(PGtokenizer.removeAngle(s), ',');
if (t.getSize() != 2)
- throw new PSQLException("postgresql.geo.circle", s);
+ throw new PSQLException("postgresql.geo.circle", PSQLState.DATA_TYPE_MISMATCH, s);
try
{
@@ -87,7 +89,7 @@ public class PGcircle extends PGobject implements Serializable, Cloneable
}
catch (NumberFormatException e)
{
- throw new PSQLException("postgresql.geo.circle", e);
+ throw new PSQLException("postgresql.geo.circle", PSQLState.DATA_TYPE_MISMATCH, e);
}
}