| Class | Line # | Actions | |||||
|---|---|---|---|---|---|---|---|
| RuntimeJdbcException | 8 | 2 | 0% | 2 | 4 |
| 1 | package guru.mikelue.foxglove.jdbc; | |
| 2 | ||
| 3 | import java.sql.SQLException; | |
| 4 | ||
| 5 | /** | |
| 6 | * Converts {@link SQLException} to unchecked exception. | |
| 7 | */ | |
| 8 | public class RuntimeJdbcException extends RuntimeException { | |
| 9 | private static final long serialVersionUID = 1L; | |
| 10 | ||
| 11 | /** | |
| 12 | * Message-only exception. | |
| 13 | * | |
| 14 | * @param message The message of exception | |
| 15 | */ | |
| 16 | 0 | public RuntimeJdbcException(String message) |
| 17 | { | |
| 18 | 0 | super(message); |
| 19 | } | |
| 20 | ||
| 21 | /** | |
| 22 | * Wraps {@link Exception} to unchecked exception. | |
| 23 | * | |
| 24 | * @param cause The original {@link Exception} | |
| 25 | */ | |
| 26 | 0 | public RuntimeJdbcException(Exception cause) |
| 27 | { | |
| 28 | 0 | super(cause); |
| 29 | } | |
| 30 | } |