KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > datasystem > interfaces > DataException


1 package com.daffodilwoods.daffodildb.server.datasystem.interfaces;
2
3 import com.daffodilwoods.database.general.*;
4 import java.io.*;
5 import com.daffodilwoods.database.resource.DException;
6 public class DataException extends DatabaseException{
7
8   Exception JavaDoc exception;
9
10   public DataException(String JavaDoc sqlCode, Object JavaDoc[] parameters, DException temp) {
11     super(sqlCode, parameters);
12     this.prevException = temp;
13   }
14
15   public DException getPreviousException(){
16     return (prevException==null) ? null : prevException;
17   }
18
19   public DataException(String JavaDoc sqlCode, Object JavaDoc[] parameters) {
20     super(sqlCode, parameters);
21   }
22   public String JavaDoc getMessage(java.util.Locale JavaDoc locale) {
23       return super.getMessage(locale);
24   }
25
26 }
27
Popular Tags