Madan Jampani | 08822c4 | 2014-11-04 17:17:46 -0800 | [diff] [blame] | 1 | package org.onlab.onos.store.service; |
| 2 | |
| 3 | /** |
| 4 | * Base exception type for database failures. |
| 5 | */ |
| 6 | @SuppressWarnings("serial") |
| 7 | public class DatabaseException extends RuntimeException { |
| 8 | public DatabaseException(String message, Throwable t) { |
| 9 | super(message, t); |
| 10 | } |
| 11 | |
| 12 | public DatabaseException(String message) { |
| 13 | super(message); |
| 14 | } |
| 15 | |
| 16 | public DatabaseException(Throwable t) { |
| 17 | super(t); |
| 18 | } |
| 19 | |
| 20 | public DatabaseException() { |
| 21 | }; |
Madan Jampani | a88d1f5 | 2014-11-14 16:45:24 -0800 | [diff] [blame] | 22 | |
| 23 | public static class Timeout extends DatabaseException { |
| 24 | public Timeout(String message, Throwable t) { |
| 25 | super(message, t); |
| 26 | } |
| 27 | |
| 28 | public Timeout(String message) { |
| 29 | super(message); |
| 30 | } |
| 31 | |
| 32 | public Timeout(Throwable t) { |
| 33 | super(t); |
| 34 | } |
| 35 | } |
Madan Jampani | 08822c4 | 2014-11-04 17:17:46 -0800 | [diff] [blame] | 36 | } |