|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.melati.poem.PoemException org.melati.poem.NormalPoemException org.melati.poem.SQLPoemException org.melati.poem.ExecutingSQLPoemException org.melati.poem.dbms.DuplicateKeySQLPoemException
public class DuplicateKeySQLPoemException
Thrown when an attempt to insert a value which is already present in a column with a unique index is made.
Field Summary | |
---|---|
String |
column
The Column we are dealing with. |
boolean |
insert
Whether this was an insert operation or not. |
String |
table
The Table we are dealing with. |
Fields inherited from class org.melati.poem.ExecutingSQLPoemException |
---|
sql |
Fields inherited from class org.melati.poem.PoemException |
---|
subException |
Constructor Summary | |
---|---|
DuplicateKeySQLPoemException(Column column,
String sql,
boolean insert,
SQLException e)
Constructor. |
|
DuplicateKeySQLPoemException(Table table,
String sql,
boolean insert,
SQLException e)
Constructor. |
Method Summary | |
---|---|
String |
getColumn()
|
String |
getMessage()
The detail message which may be null. |
String |
getTable()
|
boolean |
getWasInsert()
|
Methods inherited from class org.melati.poem.PoemException |
---|
getCoreMessage, initCause, innermostException, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public String table
public String column
public boolean insert
Constructor Detail |
---|
public DuplicateKeySQLPoemException(Table table, String sql, boolean insert, SQLException e)
public DuplicateKeySQLPoemException(Column column, String sql, boolean insert, SQLException e)
Method Detail |
---|
public final String getTable()
public final String getColumn()
public final boolean getWasInsert()
public String getMessage()
PoemException
getMessage
in class ExecutingSQLPoemException
Throwable.getMessage()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |