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 | // |
| 7 | /** |
| 8 | * Base exception class for conditional write, etc. failure. |
| 9 | */ |
| 10 | public class RejectRulesException extends Exception { |
| 11 | private static final long serialVersionUID = -1444683012320423530L; |
| 12 | |
| 13 | public RejectRulesException(final String message) { |
Yuta HIGUCHI | 826b4a4 | 2014-03-24 13:10:33 -0700 | [diff] [blame] | 14 | super(message); |
Yuta HIGUCHI | 66ca1bf | 2014-03-12 18:34:09 -0700 | [diff] [blame] | 15 | } |
| 16 | |
| 17 | public RejectRulesException(final String message, final Throwable cause) { |
Yuta HIGUCHI | 826b4a4 | 2014-03-24 13:10:33 -0700 | [diff] [blame] | 18 | super(message, cause); |
Yuta HIGUCHI | 66ca1bf | 2014-03-12 18:34:09 -0700 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | public RejectRulesException(final Throwable cause) { |
Yuta HIGUCHI | 826b4a4 | 2014-03-24 13:10:33 -0700 | [diff] [blame] | 22 | super(cause); |
Yuta HIGUCHI | 66ca1bf | 2014-03-12 18:34:09 -0700 | [diff] [blame] | 23 | } |
| 24 | } |