camera_exceptions.h
Go to the documentation of this file.
1 /*
2 This code was developed by the National Robotics Engineering Center (NREC), part of the Robotics Institute at Carnegie Mellon University.
3 Its development was funded by DARPA under the LS3 program and submitted for public release on June 7th, 2012.
4 Release was granted on August, 21st 2012 with Distribution Statement "A" (Approved for Public Release, Distribution Unlimited).
5 
6 This software is released under a BSD license:
7 
8 Copyright (c) 2012, Carnegie Mellon University. All rights reserved.
9 
10 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
11 
12 Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
13 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.
14 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.
15 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.
16 */
17 
18 
19 
20 /*-*-C++-*-*/
32 #ifndef _CAMERAEXCEPTIONS_H_
33 #define _CAMERAEXCEPTIONS_H_
34 
35 #include <stdexcept>
36 
37 class CameraTimeoutException: public std::runtime_error
38 {
39 public:
40  CameraTimeoutException(): runtime_error("Image not found within timeout.") {}
41  CameraTimeoutException(std::string msg): runtime_error(msg.c_str()) {}
42 };
43 
44 class CameraNotRunningException: public std::runtime_error
45 {
46 public:
47  CameraNotRunningException(): runtime_error("Camera is currently not running. Please start the capture.") {}
48  CameraNotRunningException(std::string msg): runtime_error(msg.c_str()) {}
49 };
50 
51 class CameraImageNotReadyException: public std::runtime_error
52 {
53 public:
54  CameraImageNotReadyException(): runtime_error("Image is currently not ready.") {}
55  CameraImageNotReadyException(std::string msg): runtime_error(msg.c_str()) {}
56 };
57 
58 class CameraImageConsistencyError: public std::runtime_error
59 {
60 public:
61  CameraImageConsistencyError(): runtime_error("Image consistency issue.") {}
62  CameraImageConsistencyError(std::string msg): runtime_error(msg.c_str()) {}
63 };
64 
65 #endif
CameraImageConsistencyError(std::string msg)
CameraNotRunningException(std::string msg)
CameraTimeoutException(std::string msg)
CameraImageNotReadyException(std::string msg)


pointgrey_camera_driver
Author(s): Chad Rockey
autogenerated on Thu Jun 6 2019 19:27:05