KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > serversystem > dmlvalidation > constraintsystem > ConstraintException


1 package com.daffodilwoods.daffodildb.server.serversystem.dmlvalidation.constraintsystem;
2
3 import com.daffodilwoods.database.general.*;
4 import com.daffodilwoods.database.resource.*;
5
6 /**
7  *
8  * <p>Title: ConstraintException</p>
9  * <p>Description: </p>
10  *
11  */

12 public class ConstraintException extends DatabaseException{
13
14   public ConstraintException(String JavaDoc sqlCode, Object JavaDoc[] parameters, DException temp) {
15     super(sqlCode, parameters);
16     this.prevException = temp;
17   }
18
19   /**
20    * returns Previous Exception
21    * @return DException
22    */

23   public DException getPreviousException(){
24     return (prevException==null) ? null : prevException;
25   }
26
27   public ConstraintException(String JavaDoc sqlCode, Object JavaDoc[] parameters) {
28     super(sqlCode, parameters);
29   }
30
31   /**
32    *
33    * @param locale
34    * @return String
35    */

36   public String JavaDoc getMessage(java.util.Locale JavaDoc locale) {
37     return super.getMessage(locale);
38   }
39
40 }
41
Popular Tags