blob: 50e4cd40af722d89e039613fd9eb889fbc4620e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
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;
}
}
|