107f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin/*
207f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin * Copyright 2013 The Android Open Source Project
307f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin *
407f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin * Licensed under the Apache License, Version 2.0 (the "License");
507f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin * you may not use this file except in compliance with the License.
607f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin * You may obtain a copy of the License at
707f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin *
807f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin *      http://www.apache.org/licenses/LICENSE-2.0
907f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin *
1007f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin * Unless required by applicable law or agreed to in writing, software
1107f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin * distributed under the License is distributed on an "AS IS" BASIS,
1207f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1307f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin * See the License for the specific language governing permissions and
1407f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin * limitations under the License.
1507f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin */
1607f09b47112dc1094649da00f7e86024b67d5777Igor Murashkinpackage com.android.ex.camera2.exceptions;
1707f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin
1807f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin/**
1907f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin * Used instead of TimeoutException when something times out in a non-recoverable manner.
2007f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin *
2107f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin * <p>This typically happens due to a deadlock or bug in the camera service,
2207f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin * so please file a bug for this. This should never ever happen in normal operation, which is
2307f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin * why this exception is unchecked.</p>
2407f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin */
2507f09b47112dc1094649da00f7e86024b67d5777Igor Murashkinpublic class TimeoutRuntimeException extends RuntimeException {
2607f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin    public TimeoutRuntimeException(String message) {
2707f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin        super(message);
2807f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin    }
2907f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin
3007f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin    public TimeoutRuntimeException(String message, Throwable cause) {
3107f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin        super(message, cause);
3207f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin    }
3307f09b47112dc1094649da00f7e86024b67d5777Igor Murashkin}
34