| package org.onosproject.store.service; |
| |
| /** |
| * Base exception type for database failures. |
| */ |
| @SuppressWarnings("serial") |
| public class DatabaseException extends RuntimeException { |
| public DatabaseException(String message, Throwable t) { |
| super(message, t); |
| } |
| |
| public DatabaseException(String message) { |
| super(message); |
| } |
| |
| public DatabaseException(Throwable t) { |
| super(t); |
| } |
| |
| public DatabaseException() { |
| }; |
| |
| public static class Timeout extends DatabaseException { |
| public Timeout(String message, Throwable t) { |
| super(message, t); |
| } |
| |
| public Timeout(String message) { |
| super(message); |
| } |
| |
| public Timeout(Throwable t) { |
| super(t); |
| } |
| } |
| } |