• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

optimizely / java-sdk / 2001

pending completion
2001

push

travis-ci-com

jaeopt
patches cherry-picked

4889 of 5384 relevant lines covered (90.81%)

0.91 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/core-api/src/main/java/com/optimizely/ab/UnknownExperimentException.java
1
/**
2
 *
3
 *    Copyright 2016-2017, 2019 Optimizely and contributors
4
 *
5
 *    Licensed under the Apache License, Version 2.0 (the "License");
6
 *    you may not use this file except in compliance with the License.
7
 *    You may obtain a copy of the License at
8
 *
9
 *        http://www.apache.org/licenses/LICENSE-2.0
10
 *
11
 *    Unless required by applicable law or agreed to in writing, software
12
 *    distributed under the License is distributed on an "AS IS" BASIS,
13
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 *    See the License for the specific language governing permissions and
15
 *    limitations under the License.
16
 */
17
package com.optimizely.ab;
18

19
import com.optimizely.ab.config.ProjectConfig;
20
import com.optimizely.ab.config.Experiment;
21

22
/**
23
 * Exception thrown when attempting to use/refer to an {@link Experiment} that isn't present in the current
24
 * {@link ProjectConfig}.
25
 * <p>
26
 * This may occur if code changes are made prior to the experiment being setup in the Optimizely application.
27
 */
28
public class UnknownExperimentException extends OptimizelyRuntimeException {
29

30
    public UnknownExperimentException(String message) {
31
        super(message);
1✔
32
    }
1✔
33

34
    public UnknownExperimentException(String message, Throwable cause) {
35
        super(message, cause);
×
36
    }
×
37
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc