Debian Codegraph @

src/test/java/io/reactivex/rxjava3/exceptions/TestException.java

raw
1 /*
2 * Copyright (c) 2016-present, RxJava Contributors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
5 * compliance with the License. You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software distributed under the License is
10 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See
11 * the License for the specific language governing permissions and limitations under the License.
12 */
13
14 package io.reactivex.rxjava3.exceptions;
15
16 /**
17 * Exception for testing if unchecked expections propagate as-is without confusing with
18 * other type of common exceptions.
19 */
20 public final class TestException extends RuntimeException {
21
22 private static final long serialVersionUID = -1438148770465406172L;
23
24 /**
25 * Constructs a TestException without message or cause.
26 */
27 public TestException() {
28 super();
29 }
30
31 /**
32 * Counstructs a TestException with message and cause.
33 * @param message the message
34 * @param cause the cause
35 */
36 public TestException(String message, Throwable cause) {
37 super(message, cause);
38 }
39
40 /**
41 * Constructs a TestException with a message only.
42 * @param message the message
43 */
44 public TestException(String message) {
45 super(message);
46 }
47
48 /**
49 * Constructs a TestException with a cause only.
50 * @param cause the cause
51 */
52 public TestException(Throwable cause) {
53 super(cause);
54 }
55 }