-
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.
add more tests assert checks and documentation
- Loading branch information
1 parent
5d492df
commit 99c708b
Showing
21 changed files
with
715 additions
and
21 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
public class ThrowNew extends Throwable { | ||
|
||
public static String message; | ||
|
||
public ThrowNew(String msg) { | ||
super(msg); | ||
message = msg; | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
public class ThrowNewZa extends Throwable { | ||
|
||
public static String message; | ||
|
||
public ThrowNewZa() { | ||
super(); | ||
message = "called"; | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
public class ThrowNewZa2 extends Throwable { | ||
|
||
public static String message; | ||
|
||
public ThrowNewZa2() { | ||
super(); | ||
message = "called"; | ||
} | ||
|
||
public ThrowNewZa2(String arg) { | ||
super(); | ||
message = String.valueOf(arg); | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
public class ThrowNewZa3 extends Throwable { | ||
|
||
public static String message; | ||
|
||
public ThrowNewZa3(Object arg) { | ||
super(); | ||
message = String.valueOf(arg); | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
public abstract class ThrowNewZa4 extends Throwable { | ||
|
||
public static String message; | ||
|
||
public ThrowNewZa4(String arg) { | ||
super(arg); | ||
message = String.valueOf(arg); | ||
} | ||
|
||
public static boolean isAbstractInst(Object obj) { | ||
return obj.getClass() == ThrowNewZa4.class; | ||
} | ||
} |
Oops, something went wrong.