KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > sql99 > dml > DmlStatementException


1 package com.daffodilwoods.daffodildb.server.sql99.dml;
2
3 import com.daffodilwoods.database.resource.*;
4
5 public class DmlStatementException extends DException {
6
7    public DmlStatementException(String JavaDoc sqlCode, Object JavaDoc[] parameters, DException temp) {
8       super(sqlCode, parameters);
9       this.prevException = temp;
10    }
11
12    public DmlStatementException(String JavaDoc sqlCode, Object JavaDoc[] parameters) {
13       super(sqlCode, parameters);
14    }
15
16    /**
17     * Used to throw the prevException if it is not null.
18     * @return DException
19     */

20
21    public DException getPreviousException() {
22       return (prevException == null) ? null : prevException;
23    }
24
25    /**
26     * returns the locale message.
27     * @param locale locale of JVM
28     * @return String message that is returned by the method.
29     */

30    public String JavaDoc getMessage(java.util.Locale JavaDoc locale) {
31       return super.getMessage(locale);
32    }
33 }
34
Popular Tags