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 exception; 9 10 public DataException(String sqlCode, Object [] 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 sqlCode, Object [] parameters) { 20 super(sqlCode, parameters); 21 } 22 public String getMessage(java.util.Locale locale) { 23 return super.getMessage(locale); 24 } 25 26 } 27 | Popular Tags |