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

CustomUncheckedException.java 373B

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