1 /* 2 * Copyright (C) 2010 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 package com.android.tradefed.device; 17 18 19 /** 20 * A specialization of {@link DeviceNotAvailableException} that indicates device is visible to 21 * adb, but is unresponsive (ie commands timing out, won't boot, etc) 22 */ 23 @SuppressWarnings("serial") 24 public class DeviceUnresponsiveException extends DeviceNotAvailableException { 25 /** 26 * Creates a {@link DeviceUnresponsiveException}. 27 */ 28 public DeviceUnresponsiveException() { 29 super(); 30 } 31 32 /** 33 * Creates a {@link DeviceUnresponsiveException}. 34 * 35 * @param msg a descriptive message. 36 * 37 * @deprecated use {@link #DeviceUnresponsiveException(String msg, String serial)} instead 38 */ 39 @Deprecated 40 public DeviceUnresponsiveException(String msg) { 41 super(msg); 42 } 43 44 /** 45 * Creates a {@link DeviceUnresponsiveException}. 46 * 47 * @param msg a descriptive message. 48 */ 49 public DeviceUnresponsiveException(String msg, String serial) { 50 super(msg, serial); 51 } 52 53 /** 54 * Creates a {@link DeviceUnresponsiveException}. 55 * 56 * @param msg a descriptive message. 57 * @param cause the root {@link Throwable} that caused the device to become unavailable. 58 * 59 * @deprecated use 60 * {@link #DeviceUnresponsiveException(String msg, Throwable cause, String serial)} instead 61 */ 62 @Deprecated 63 public DeviceUnresponsiveException(String msg, Throwable cause) { 64 super(msg, cause); 65 } 66 67 /** 68 * Creates a {@link DeviceUnresponsiveException}. 69 * 70 * @param msg a descriptive message. 71 * @param cause the root {@link Throwable} that caused the device to become unavailable. 72 */ 73 public DeviceUnresponsiveException(String msg, Throwable cause, String serial) { 74 super(msg, cause, serial); 75 } 76 } 77