Skip to content
Snippets Groups Projects
Commit 23e85580 authored by Oliver Sander's avatar Oliver Sander
Browse files

Replace ISTLException by RangeError

[[Imported from SVN: r6262]]
parent 9dee9697
Branches
Tags
No related merge requests found
......@@ -5,7 +5,7 @@
#define DUNE_REMOTEINDICES_HH
#include "indexset.hh"
#include "istlexception.hh"
#include <dune/common/exceptions.hh>
#include "plocalindex.hh"
#include <dune/common/poolallocator.hh>
#include <dune/common/sllist.hh>
......@@ -544,7 +544,7 @@ namespace Dune {
friend class RemoteIndices;
public:
class InvalidPosition : public ISTLError
class InvalidPosition : public RangeError
{};
enum {
......@@ -1602,13 +1602,13 @@ namespace Dune {
++index;
#ifdef DUNE_ISTL_WITH_CHECKING
if(index == indexSet_.end())
DUNE_THROW(ISTLError, "No such global index in set!");
DUNE_THROW(InvalidPosition, "No such global index in set!");
#endif
}
#ifdef DUNE_ISTL_WITH_CHECKING
if(index->global() != *giter)
DUNE_THROW(ISTLError, "No such global index in set!");
DUNE_THROW(InvalidPosition, "No such global index in set!");
#endif
iter->localIndex_ = &(*index);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment