1 package com.sri.common.dbobj;
2
3 /***
4 * Exception indicates a general error in adapting a Database object to
5 * a POJO.
6 *
7 * @author Michael Rimov
8 */
9 public class RepositoryConversionException extends RuntimeException {
10
11 /***
12 *
13 */
14 private static final long serialVersionUID = 1L;
15
16 /***
17 * Default constructor.
18 */
19 public RepositoryConversionException() {
20 super();
21 }
22
23 /***
24 * Constructor that takes a message.
25 *
26 * @param message String
27 */
28 public RepositoryConversionException(final String message) {
29 super(message);
30 }
31
32 /***
33 * Constructor that takes a nested exception/error.
34 *
35 * @param cause Throwable the nested error.
36 */
37 public RepositoryConversionException(final Throwable cause) {
38 super(cause);
39 }
40
41 /***
42 * Constructor that takes a message and a nested exception.
43 *
44 * @param message String the message.
45 * @param cause Throwable the underlying exception.
46 */
47 public RepositoryConversionException(final String message, final Throwable cause) {
48 super(message, cause);
49 }
50 }