camera_exceptions.h
Go to the documentation of this file.
00001 /*
00002 This code was developed by the National Robotics Engineering Center (NREC), part of the Robotics Institute at Carnegie Mellon University.
00003 Its development was funded by DARPA under the LS3 program and submitted for public release on June 7th, 2012.
00004 Release was granted on August, 21st 2012 with Distribution Statement "A" (Approved for Public Release, Distribution Unlimited).
00005 
00006 This software is released under a BSD license:
00007 
00008 Copyright (c) 2012, Carnegie Mellon University. All rights reserved.
00009 
00010 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
00011 
00012 Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
00013 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
00014 Neither the name of the Carnegie Mellon University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
00015 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00016 */
00017 
00018 
00019 
00020 /*-*-C++-*-*/
00032 #ifndef _CAMERAEXCEPTIONS_H_
00033 #define _CAMERAEXCEPTIONS_H_
00034 
00035 #include <stdexcept>
00036 
00037 class CameraTimeoutException: public std::runtime_error
00038 {
00039 public:
00040   CameraTimeoutException(): runtime_error("Image not found within timeout.") {}
00041   CameraTimeoutException(std::string msg): runtime_error(msg.c_str()) {}
00042 };
00043 
00044 class CameraNotRunningException: public std::runtime_error
00045 {
00046 public:
00047   CameraNotRunningException(): runtime_error("Camera is currently not running.  Please start the capture.") {}
00048   CameraNotRunningException(std::string msg): runtime_error(msg.c_str()) {}
00049 };
00050 
00051 class CameraImageNotReadyException: public std::runtime_error
00052 {
00053 public:
00054   CameraImageNotReadyException(): runtime_error("Image is currently not ready.") {}
00055   CameraImageNotReadyException(std::string msg): runtime_error(msg.c_str()) {}
00056 };
00057 
00058 #endif


pointgrey_camera_driver
Author(s): Chad Rockey
autogenerated on Wed Aug 26 2015 15:32:44