Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecated dynamic exception in fboss/agent/hw/bcm/BcmError.h +5 #539

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions fbpcf/exception/exceptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ParseError : virtual public std::exception {
public:
explicit ParseError(std::string msg) : msg_{msg} {}

const char* what() const throw() override {
const char* what() const noexcept override {
return msg_.c_str();
}

Expand Down Expand Up @@ -65,7 +65,7 @@ class ConstructionError : virtual public std::exception {
public:
explicit ConstructionError(std::string msg) : msg_{msg} {}

const char* what() const throw() override {
const char* what() const noexcept override {
return msg_.c_str();
}

Expand All @@ -83,7 +83,7 @@ class RuntimeTypeError : virtual public std::exception {
public:
explicit RuntimeTypeError(std::string msg) : msg_{msg} {}

const char* what() const throw() override {
const char* what() const noexcept override {
return msg_.c_str();
}

Expand All @@ -102,7 +102,7 @@ class SchemaTraceError : virtual public std::exception {
public:
explicit SchemaTraceError(std::string msg) : msg_{msg} {}

const char* what() const throw() override {
const char* what() const noexcept override {
return msg_.c_str();
}

Expand All @@ -119,7 +119,7 @@ class NotImplementedError : virtual public std::exception {
public:
explicit NotImplementedError(std::string msg) : msg_{msg} {}

const char* what() const throw() override {
const char* what() const noexcept override {
return msg_.c_str();
}

Expand All @@ -135,7 +135,7 @@ class NotSupportedError : virtual public std::exception {
public:
explicit NotSupportedError(std::string msg) : msg_{msg} {}

const char* what() const throw() override {
const char* what() const noexcept override {
return msg_.c_str();
}

Expand All @@ -153,7 +153,7 @@ class InvalidAccessError : virtual public std::exception {
public:
explicit InvalidAccessError(std::string msg) : msg_{msg} {}

const char* what() const throw() override {
const char* what() const noexcept override {
return msg_.c_str();
}

Expand Down
Loading