blob: 26a28b0774d3d02270abb71696d936d7dd935436 [file] [log] [blame]
Brian O'Connorabafb502014-12-02 22:26:20 -08001package org.onosproject.store.service;
Madan Jampani08822c42014-11-04 17:17:46 -08002
3/**
4 * Base exception type for database failures.
5 */
6@SuppressWarnings("serial")
7public 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 Jampania88d1f52014-11-14 16:45:24 -080022
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 }
Brian O'Connorabafb502014-12-02 22:26:20 -080036}