Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
An example Java exception to demonstrate what is important when it comes to testing.
package com.liamdjolly;
public class MyException extends Exception {
public MyException() {
public MyException(String message) {
public MyException(String message, Throwable cause) {
super(message, cause);
public MyException(Throwable cause) {
public MyException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment