1 package com.daffodilwoods.daffodildb.server.serversystem.dmlvalidation.constraintsystem; 2 3 import com.daffodilwoods.database.general.*; 4 import com.daffodilwoods.database.resource.*; 5 6 12 public class ConstraintException extends DatabaseException{ 13 14 public ConstraintException(String sqlCode, Object [] parameters, DException temp) { 15 super(sqlCode, parameters); 16 this.prevException = temp; 17 } 18 19 23 public DException getPreviousException(){ 24 return (prevException==null) ? null : prevException; 25 } 26 27 public ConstraintException(String sqlCode, Object [] parameters) { 28 super(sqlCode, parameters); 29 } 30 31 36 public String getMessage(java.util.Locale locale) { 37 return super.getMessage(locale); 38 } 39 40 } 41 | Popular Tags |