include
spinnaker_camera_driver
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
3
Mellon University.
4
Its development was funded by DARPA under the LS3 program and submitted for public release on June 7th, 2012.
5
Release was granted on August, 21st 2012 with Distribution Statement "A" (Approved for Public Release, Distribution
6
Unlimited).
7
8
This software is released under a BSD license:
9
10
Copyright (c) 2012, Carnegie Mellon University. All rights reserved.
11
Copyright (c) 2018, Clearpath Robotics, Inc., All rights reserved.
12
13
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
14
following conditions are met:
15
16
Redistributions of source code must retain the above copyright notice, this list of conditions and the following
17
disclaimer.
18
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
19
disclaimer in the documentation and/or other materials provided with the distribution.
20
Neither the name of the Carnegie Mellon University nor the names of its contributors may be used to endorse or promote
21
products derived from this software without specific prior written permission.
22
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
23
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
*/
30
31
/*-*-C++-*-*/
43
#ifndef SPINNAKER_CAMERA_DRIVER_CAMERA_EXCEPTIONS_H
44
#define SPINNAKER_CAMERA_DRIVER_CAMERA_EXCEPTIONS_H
45
46
#include <stdexcept>
47
#include <string>
48
49
class
CameraTimeoutException
:
public
std::runtime_error
50
{
51
public
:
52
CameraTimeoutException
() : runtime_error(
"Image not found within timeout."
)
53
{
54
}
55
explicit
CameraTimeoutException
(
const
std::string& msg) : runtime_error(
msg
.c_str())
56
{
57
}
58
};
59
60
class
CameraNotRunningException
:
public
std::runtime_error
61
{
62
public
:
63
CameraNotRunningException
() : runtime_error(
"Camera is currently not running. Please start the capture."
)
64
{
65
}
66
explicit
CameraNotRunningException
(
const
std::string& msg) : runtime_error(
msg
.c_str())
67
{
68
}
69
};
70
71
class
CameraImageNotReadyException
:
public
std::runtime_error
72
{
73
public
:
74
CameraImageNotReadyException
() : runtime_error(
"Image is currently not ready."
)
75
{
76
}
77
explicit
CameraImageNotReadyException
(
const
std::string& msg) : runtime_error(
msg
.c_str())
78
{
79
}
80
};
81
82
#endif // SPINNAKER_CAMERA_DRIVER_CAMERA_EXCEPTIONS_H
CameraImageNotReadyException::CameraImageNotReadyException
CameraImageNotReadyException(const std::string &msg)
Definition:
camera_exceptions.h:77
CameraNotRunningException::CameraNotRunningException
CameraNotRunningException(const std::string &msg)
Definition:
camera_exceptions.h:66
msg
msg
CameraTimeoutException::CameraTimeoutException
CameraTimeoutException()
Definition:
camera_exceptions.h:52
CameraTimeoutException
Definition:
camera_exceptions.h:49
CameraImageNotReadyException
Definition:
camera_exceptions.h:71
CameraNotRunningException
Definition:
camera_exceptions.h:60
CameraNotRunningException::CameraNotRunningException
CameraNotRunningException()
Definition:
camera_exceptions.h:63
CameraImageNotReadyException::CameraImageNotReadyException
CameraImageNotReadyException()
Definition:
camera_exceptions.h:74
CameraTimeoutException::CameraTimeoutException
CameraTimeoutException(const std::string &msg)
Definition:
camera_exceptions.h:55
spinnaker_camera_driver
Author(s): Chad Rockey
autogenerated on Mon Sep 25 2023 02:56:14