else
{
if (myIndex[1] >= 0)
- Standard_OutOfRange::Raise("BRepMesh_PairOfIndex::Append, more than two index to store");
+ throw Standard_OutOfRange("BRepMesh_PairOfIndex::Append, more than two index to store");
myIndex[1] = theIndex;
}
inline void Prepend(const Standard_Integer theIndex)
{
if (myIndex[1] >= 0)
- Standard_OutOfRange::Raise ("BRepMesh_PairOfIndex::Prepend, more than two index to store");
+ throw Standard_OutOfRange("BRepMesh_PairOfIndex::Prepend, more than two index to store");
myIndex[1] = myIndex[0];
myIndex[0] = theIndex;
inline Standard_Integer Index(const Standard_Integer thePairPos) const
{
if (thePairPos != 1 && thePairPos != 2)
- Standard_OutOfRange::Raise ("BRepMesh_PairOfIndex::Index, requested index is out of range");
+ throw Standard_OutOfRange("BRepMesh_PairOfIndex::Index, requested index is out of range");
return myIndex[thePairPos - 1];
}
const Standard_Integer theIndex)
{
if (thePairPos != 1 && thePairPos != 2)
- Standard_OutOfRange::Raise ("BRepMesh_PairOfIndex::SetIndex, requested index is out of range");
+ throw Standard_OutOfRange("BRepMesh_PairOfIndex::SetIndex, requested index is out of range");
myIndex[thePairPos - 1] = theIndex;
}
inline void RemoveIndex(const Standard_Integer thePairPos)
{
if (thePairPos != 1 && thePairPos != 2)
- Standard_OutOfRange::Raise ("BRepMesh_PairOfIndex::RemoveIndex, requested index is out of range");
+ throw Standard_OutOfRange("BRepMesh_PairOfIndex::RemoveIndex, requested index is out of range");
if ( thePairPos == 1 )
myIndex[0] = myIndex[1];