10 #ifndef TPETRA_EXCEPTIONS_DECL_HPP
11 #define TPETRA_EXCEPTIONS_DECL_HPP
13 #include <Tpetra_ConfigDefs.hpp>
47 template <
class GlobalOrdinal>
55 : std::domain_error(msg)
56 , glInd_(globalIndex) {}
63 const GlobalOrdinal glInd_;
71 template <
class GlobalOrdinal>
85 #endif // TPETRA_EXCEPTIONS_DECL_HPP
InvalidGlobalIndex(const std::string &msg, const GlobalOrdinal globalIndex)
Constructor.
InvalidGlobalRowIndex(const std::string &msg, const GlobalOrdinal globalIndex)
Constructor.
Exception thrown by CrsMatrix on invalid global row index.
Exception thrown by CrsMatrix on invalid global index.
GlobalOrdinal offendingIndex() const
The offending global index.