blob: 2a85e9b29c17ef7f708ff2a56ae99abae73edaab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.service;
import com.yahoo.jdisc.Container;
import com.yahoo.jdisc.Request;
import com.yahoo.jdisc.application.ContainerActivator;
import com.yahoo.jdisc.application.ContainerBuilder;
import java.net.URI;
/**
* This exception is used to signal that no {@link Container} is ready to serve {@link Request}s. An instance of this
* class will be thrown by the {@link CurrentContainer#newReference(URI)} method if it is called before a Container has
* been activated, or after a <em>null</em> argument has been passed to {@link ContainerActivator#activateContainer(ContainerBuilder)}.
*
* @author <a href="mailto:simon@yahoo-inc.com">Simon Thoresen</a>
*/
public final class ContainerNotReadyException extends RuntimeException {
/**
* Constructs a new instance of this class with a detail message.
*/
public ContainerNotReadyException() {
super("Container not ready.");
}
}
|