112339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight/* 212339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight * Copyright (C) 2013 The Android Open Source Project 312339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight * 412339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight * Licensed under the Apache License, Version 2.0 (the "License"); 512339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight * you may not use this file except in compliance with the License. 612339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight * You may obtain a copy of the License at 712339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight * 812339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight * http://www.apache.org/licenses/LICENSE-2.0 912339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight * 1012339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight * Unless required by applicable law or agreed to in writing, software 1112339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight * distributed under the License is distributed on an "AS IS" BASIS, 1212339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1312339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight * See the License for the specific language governing permissions and 1412339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight * limitations under the License. 1512339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight */ 1612339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight 1712339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knightpackage com.android.camera2.its; 1812339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight 1912339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight/** 2012339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight * All exceptions are converted to ItsExceptions. 2112339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight */ 2212339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knightclass ItsException extends Exception { 2312339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight public ItsException(Throwable cause) { 2412339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight super(cause); 2512339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight } 2612339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight 2712339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight public ItsException(String message, Throwable cause) { 2812339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight super(message, cause); 2912339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight } 3012339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight 3112339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight public ItsException(String message) { 3212339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight super(message); 3312339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight } 3412339cdd90b2c98eb4f7adf794ddca8de53992b8Timothy Knight} 35