forked from flightaware/dump978
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle exceptions from SoapySDR during stream setup more cleanly.
- Loading branch information
1 parent
b00e549
commit c09beb1
Showing
3 changed files
with
44 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// -*- c++ -*- | ||
|
||
// Copyright (c) 2019, FlightAware LLC. | ||
// All rights reserved. | ||
// Licensed under the 2-clause BSD license; see the LICENSE file | ||
|
||
#ifndef DUMP978_EXCEPTION_H | ||
#define DUMP978_EXCEPTION_H | ||
|
||
#include <stdexcept> | ||
|
||
namespace flightaware::uat { | ||
class config_error : public std::runtime_error { | ||
public: | ||
explicit config_error(const std::string &what_arg) : runtime_error(what_arg) {} | ||
explicit config_error(const char *what_arg) : runtime_error(what_arg) {} | ||
}; | ||
}; // namespace flightaware::uat | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters