aboutsummaryrefslogtreecommitdiffstats
path: root/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/MissingOptionalException.java
blob: 1379ab4654f58d41617f84bfed2d583553aa0465 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.yahoo.vespa.hosted.controller.notification;

/**
 * Used to signal that an expected value was not present when creating NotificationContent
 *
 * @author enygaard
 */
class MissingOptionalException extends RuntimeException {
    private final String field;
    public MissingOptionalException(String field) {
        super(field + " was expected but not present");
        this.field = field;
    }

    public String field() {
        return field;
    }
}