forked from dirkriehle/wahlzeit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Homework dirkriehle#9: still didnt work ??
- Loading branch information
Peter Koch
committed
Dec 16, 2017
1 parent
546994e
commit 575a2a0
Showing
7 changed files
with
129 additions
and
9 deletions.
There are no files selected for viewing
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
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
15 changes: 15 additions & 0 deletions
15
src/main/java/org/wahlzeit/model/KleinbaerPhotoException.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,15 @@ | ||
package org.wahlzeit.model; | ||
|
||
public class KleinbaerPhotoException extends RuntimeException { | ||
|
||
public String errorMsg; | ||
|
||
public KleinbaerPhotoException(){ | ||
super(); | ||
} | ||
|
||
public KleinbaerPhotoException(String msg){ | ||
super(msg); | ||
this.errorMsg = msg; | ||
} | ||
} |
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
22 changes: 22 additions & 0 deletions
22
src/main/java/org/wahlzeit/model/KleinbaerPhotoFactoryException.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,22 @@ | ||
package org.wahlzeit.model; | ||
|
||
public class KleinbaerPhotoFactoryException extends RuntimeException { | ||
|
||
public String errorMsg; | ||
public RuntimeException propagatedException; | ||
|
||
public KleinbaerPhotoFactoryException(){ | ||
super(); | ||
} | ||
|
||
public KleinbaerPhotoFactoryException(String msg){ | ||
super(msg); | ||
this.errorMsg = msg; | ||
} | ||
|
||
public KleinbaerPhotoFactoryException(String msg, RuntimeException exception){ | ||
super(msg); | ||
this.errorMsg = msg; | ||
this.propagatedException = exception; | ||
} | ||
} |
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
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