diff options
author | Tim King <taking@cs.nyu.edu> | 2018-01-09 22:05:02 -0800 |
---|---|---|
committer | Andres Noetzli <andres.noetzli@gmail.com> | 2018-01-09 22:05:02 -0800 |
commit | 2e5cc613d280fab1be89d8360250cbc3a1635ac9 (patch) | |
tree | ced7d813eec67a32fd3f1b4a1174f5ff00ab1767 /src/expr/node.h | |
parent | ff9d2c84dae5eb21a7ef77f5931673fb23129730 (diff) |
Cleaning up throw specifiers on Exception and subclasses. (#1475)
Diffstat (limited to 'src/expr/node.h')
-rw-r--r-- | src/expr/node.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/expr/node.h b/src/expr/node.h index 66f8b0a47..fd3d20afa 100644 --- a/src/expr/node.h +++ b/src/expr/node.h @@ -66,44 +66,39 @@ class NodeTemplate; * thrown by node.getType(). */ class TypeCheckingExceptionPrivate : public Exception { - -private: - + private: /** The node responsible for the failure */ NodeTemplate<true>* d_node; -public: - + public: /** * Construct the exception with the problematic node and the message * @param node the problematic node * @param message the message explaining the failure */ - TypeCheckingExceptionPrivate(NodeTemplate<false> node, std::string message) throw(); + TypeCheckingExceptionPrivate(NodeTemplate<false> node, std::string message); /** Destructor */ - ~TypeCheckingExceptionPrivate() throw (); + ~TypeCheckingExceptionPrivate() override; /** * Get the Node that caused the type-checking to fail. * @return the node */ - NodeTemplate<true> getNode() const throw(); + NodeTemplate<true> getNode() const; /** * Returns the message corresponding to the type-checking failure. * We prefer toStream() to toString() because that keeps the expr-depth * and expr-language settings present in the stream. */ - void toStream(std::ostream& out) const throw(); + void toStream(std::ostream& out) const override; };/* class TypeCheckingExceptionPrivate */ class UnknownTypeException : public TypeCheckingExceptionPrivate { -public: - - UnknownTypeException(NodeTemplate<false> node) throw(); - + public: + UnknownTypeException(NodeTemplate<false> node); };/* class UnknownTypeException */ /** |