Skip to content
Snippets Groups Projects
Commit de00950c authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

added StageException

parent 1feea311
No related branches found
No related tags found
No related merge requests found
...@@ -5,12 +5,18 @@ ...@@ -5,12 +5,18 @@
<title>Release notes</title> <title>Release notes</title>
</properties> </properties>
<body> <body>
<release version="Snapshot" date="Daily basis" description="Unstable preview of oncoming versions"> <release version="Snapshot" date="Daily basis"
<action dev="ntd" type="add" issue="66"> description="Unstable preview of oncoming versions">
Created a new site to promote TeeTime. <action dev="ntd" type="add" issue="32">
Introduced a generic exception handling for stages.
</action> </action>
</release> </release>
<release version="1.0" date="Soon" description="Initial release"> <release version="1.0" date="Soon" description="Initial release">
<action dev="ntd" type="add" issue="66">
Created a new site to
promote TeeTime.
</action>
<action type="add"> <action type="add">
Initial release of TeeTime Initial release of TeeTime
</action> </action>
......
package teetime.framework;
/**
* Represents an Exception, which is thrown by stages, if uncatched exceptions are thrown.
*
*/
public class StageException extends Exception {
/**
* Generated UID
*/
private static final long serialVersionUID = 6724637605943897808L;
private final Stage throwingStage;
public StageException(final Stage throwingStage) {
super();
this.throwingStage = throwingStage;
}
/**
* Returns the stage, which failed with an uncatched exception
*
* @return stage instance, which throws the exception
*/
public Stage getThrowingStage() {
return throwingStage;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment