1 package com.sri.common.dbobj; 2 3 /*** 4 * Runtime Exception for underlying repository errors. Most errors such 5 * as database connection lost errors are not really handleable and therefore 6 * are set as runtime. 7 * 8 * @author Michael Rimov 9 */ 10 public class RepositoryException extends RuntimeException { 11 12 /*** 13 * 14 */ 15 private static final long serialVersionUID = 1L; 16 17 /*** 18 * Default constructor. 19 */ 20 public RepositoryException() { 21 super(); 22 } 23 24 /*** 25 * Constructor that takes a message. 26 * 27 * @param message String 28 */ 29 public RepositoryException(final String message) { 30 super(message); 31 } 32 33 /*** 34 * Constructor that takes a nested exception/error. 35 * 36 * @param cause Throwable the nested error. 37 */ 38 public RepositoryException(final Throwable cause) { 39 super(cause); 40 } 41 42 /*** 43 * Constructor that takes a message and a nested exception. 44 * 45 * @param message String the message. 46 * @param cause Throwable the underlying exception. 47 */ 48 public RepositoryException(final String message, final Throwable cause) { 49 super(message, cause); 50 } 51 }