lots of exercises in java... from https://github.com/exercism/java

CustomCheckedException.java 360B

123456789101112
  1. class CustomCheckedException extends Exception {
  2. CustomCheckedException() {
  3. throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
  4. }
  5. CustomCheckedException(String message) {
  6. throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
  7. }
  8. }