-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I want to do a couple unit tests, which means I need to abstract out the engine creation in the database. I was planning to do this anyways. Signed-off-by: gburgett <[email protected]>
- Loading branch information
Showing
17 changed files
with
559 additions
and
246 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
java/XFlat/src/org/gburgett/xflat/EngineStateException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* To change this template, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package org.gburgett.xflat; | ||
|
||
import org.gburgett.xflat.db.EngineBase.EngineState; | ||
|
||
/** | ||
* | ||
* @author gordon | ||
*/ | ||
public class EngineStateException extends XflatException { | ||
|
||
private final EngineState state; | ||
public EngineState getEngineState(){ | ||
return state; | ||
} | ||
|
||
/** | ||
* Constructs an instance of | ||
* <code>EngineStateException</code> with the specified detail message. | ||
* | ||
* @param msg the detail message. | ||
*/ | ||
public EngineStateException(String msg, EngineState state) { | ||
super(msg); | ||
this.state = state; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.