Loading…

Fill in the blanks so that PaymentRejectedException is a custom unchecked exception and passes the message to its parent class.

public class PaymentRejectedException extends __CODE_FILL_parent__ {

    public PaymentRejectedException(String message) {
        __CODE_FILL_superCall__(message);
    }
}

Exercise review

Mentor
We can discuss the current task or any Java theory. I’ll help you understand it and find the next step.
Sign in to use the Mentor The Mentor uses the current exercise and your conversation history.
Sign in