Goby3  3.1.5a
2024.05.23
driver_exception.h
Go to the documentation of this file.
1 // Copyright 2009-2021:
2 // GobySoft, LLC (2013-)
3 // Massachusetts Institute of Technology (2007-2014)
4 // Community contributors (see AUTHORS file)
5 // File authors:
6 // Toby Schneider <toby@gobysoft.org>
7 //
8 //
9 // This file is part of the Goby Underwater Autonomy Project Libraries
10 // ("The Goby Libraries").
11 //
12 // The Goby Libraries are free software: you can redistribute them and/or modify
13 // them under the terms of the GNU Lesser General Public License as published by
14 // the Free Software Foundation, either version 2.1 of the License, or
15 // (at your option) any later version.
16 //
17 // The Goby Libraries are distributed in the hope that they will be useful,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU Lesser General Public License for more details.
21 //
22 // You should have received a copy of the GNU Lesser General Public License
23 // along with Goby. If not, see <http://www.gnu.org/licenses/>.
24 
25 #ifndef GOBY_ACOMMS_MODEMDRIVER_DRIVER_EXCEPTION_H
26 #define GOBY_ACOMMS_MODEMDRIVER_DRIVER_EXCEPTION_H
27 
29 #include "goby/exception.h"
30 
31 namespace goby
32 {
33 namespace acomms
34 {
36 {
37  public:
39  : Exception(s), stat_(stat)
40  {
41  }
42  protobuf::ModemDriverStatus::Status status() const { return stat_; }
43 
44  private:
46 };
47 } // namespace acomms
48 } // namespace goby
49 
50 #endif
goby::acomms::ModemDriverException::ModemDriverException
ModemDriverException(const std::string &s, protobuf::ModemDriverStatus::Status stat)
Definition: driver_exception.h:38
goby
The global namespace for the Goby project.
Definition: acomms_constants.h:33
goby::acomms::ModemDriverException
Definition: driver_exception.h:35
goby::acomms::ModemDriverException::status
protobuf::ModemDriverStatus::Status status() const
Definition: driver_exception.h:42
goby::Exception
simple exception class for goby applications
Definition: exception.h:34
exception.h
modem_driver_status.pb.h
goby::acomms::protobuf::ModemDriverStatus_Status
ModemDriverStatus_Status
Definition: modem_driver_status.pb.h:73