1 /* 2 * Copyright (C) 2015 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package android.car; 18 19 20 /** 21 * Exception thrown when car is not connected for the API which requires car connection. 22 * 23 * @deprecated No longer thrown by the Android API. Do not use in new code. 24 */ 25 @Deprecated 26 public class CarNotConnectedException extends RuntimeException { 27 private static final long serialVersionUID = 4377819074553367406L; 28 29 /** @deprecated Do not use in new code. */ 30 @Deprecated CarNotConnectedException()31 public CarNotConnectedException() { 32 } 33 34 /** @deprecated Do not use in new code. */ 35 @Deprecated CarNotConnectedException(String name)36 public CarNotConnectedException(String name) { 37 super(name); 38 } 39 40 /** @deprecated Do not use in new code. */ 41 @Deprecated CarNotConnectedException(String name, Throwable cause)42 public CarNotConnectedException(String name, Throwable cause) { 43 super(name, cause); 44 } 45 46 /** @deprecated Do not use in new code. */ 47 @Deprecated CarNotConnectedException(Exception cause)48 public CarNotConnectedException(Exception cause) { 49 super(cause); 50 } 51 } 52