-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from badetitou/exception-parent-type
Retrieve correctly the parentType of several exception
- Loading branch information
Showing
7 changed files
with
56 additions
and
7 deletions.
There are no files selected for viewing
Binary file not shown.
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
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
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,32 @@ | ||
package exceptions; | ||
|
||
public class MultipleSubException { | ||
|
||
public static class MInnerException extends java.lang.Exception { | ||
|
||
public static class MRead extends MultipleSubException.MInnerException { | ||
|
||
public MRead(final MultipleSubException el, final String details, final Throwable cause) { | ||
super("Error : \n" + el.getName() + "\n> " + details, cause); | ||
} | ||
|
||
} | ||
|
||
public static class MWrite extends MultipleSubException.MInnerException { | ||
|
||
public MWrite(final MultipleSubException el, final String details, final Throwable cause) { | ||
super("Error : \n" + el.getName() + "\n> " + details, cause); | ||
} | ||
|
||
} | ||
|
||
public static class MReadWrite extends MultipleSubException.MInnerException { | ||
|
||
public MReadWrite(final MultipleSubException el, final String details, final Throwable cause) { | ||
super("Error : \n" + el.getName() + "\n> " + details, cause); | ||
} | ||
|
||
} | ||
|
||
} | ||
} |
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
The import modification is here