Jonathan Hart | 6df9017 | 2014-04-03 10:13:11 -0700 | [diff] [blame] | 1 | package net.onrc.onos.core.datastore; |
Yuta HIGUCHI | 66ca1bf | 2014-03-12 18:34:09 -0700 | [diff] [blame] | 2 | |
| 3 | // |
| 4 | // Not sure if we really need this base class. |
| 5 | // Just copied hierarchy from RAMCloud. |
| 6 | // |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 7 | |
Yuta HIGUCHI | 66ca1bf | 2014-03-12 18:34:09 -0700 | [diff] [blame] | 8 | /** |
| 9 | * Base exception class for conditional write, etc. failure. |
| 10 | */ |
| 11 | public class RejectRulesException extends Exception { |
| 12 | private static final long serialVersionUID = -1444683012320423530L; |
| 13 | |
| 14 | public RejectRulesException(final String message) { |
Yuta HIGUCHI | 826b4a4 | 2014-03-24 13:10:33 -0700 | [diff] [blame] | 15 | super(message); |
Yuta HIGUCHI | 66ca1bf | 2014-03-12 18:34:09 -0700 | [diff] [blame] | 16 | } |
| 17 | |
| 18 | public RejectRulesException(final String message, final Throwable cause) { |
Yuta HIGUCHI | 826b4a4 | 2014-03-24 13:10:33 -0700 | [diff] [blame] | 19 | super(message, cause); |
Yuta HIGUCHI | 66ca1bf | 2014-03-12 18:34:09 -0700 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | public RejectRulesException(final Throwable cause) { |
Yuta HIGUCHI | 826b4a4 | 2014-03-24 13:10:33 -0700 | [diff] [blame] | 23 | super(cause); |
Yuta HIGUCHI | 66ca1bf | 2014-03-12 18:34:09 -0700 | [diff] [blame] | 24 | } |
| 25 | } |