1 package pt.waveweb.core; 2 3 /** 4 * Exception thrown when an attempt to query the database fails. Sublasses 5 * runtime exception to avoid declaring it up the call stack. 6 * 7 */ 8 public class DataAccessException extends RuntimeException { 9 10 public DataAccessException() { 11 this("An error occurred while querying the data source."); 12 } 13 14 public DataAccessException(String message) { 15 super(message); 16 } 17 }