1 /* 2 * Copyright (C) 2012 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 com.android.uiautomator.core; 18 19 /** 20 * Generated in test runs when a {@link UiSelector} selector could not be matched 21 * to any UI element displayed. 22 * @since API Level 16 23 * @deprecated New tests should be written using UI Automator 2.0 which is available as part of the 24 * Android Testing Support Library. 25 */ 26 @Deprecated 27 public class UiObjectNotFoundException extends Exception { 28 29 private static final long serialVersionUID = 1L; 30 31 /** 32 * @since API Level 16 33 **/ UiObjectNotFoundException(String msg)34 public UiObjectNotFoundException(String msg) { 35 super(msg); 36 } 37 38 /** 39 * @since API Level 16 40 **/ UiObjectNotFoundException(String detailMessage, Throwable throwable)41 public UiObjectNotFoundException(String detailMessage, Throwable throwable) { 42 super(detailMessage, throwable); 43 } 44 45 /** 46 * @since API Level 16 47 **/ UiObjectNotFoundException(Throwable throwable)48 public UiObjectNotFoundException(Throwable throwable) { 49 super(throwable); 50 } 51 } 52