Skip to content

Commit

Permalink
add more missing throw
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25794 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
rfranke committed Apr 28, 2015
1 parent 453d33f commit 46295b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SimulationRuntime/cpp/Include/Core/Math/Array.h
Expand Up @@ -310,7 +310,7 @@ class RefArray : public BaseArray<T>
*/
virtual void resize(const std::vector<size_t>& dims)
{
std::runtime_error("Resize reference array is not supported");
throw std::runtime_error("Resize reference array is not supported");
}

protected:
Expand Down Expand Up @@ -633,7 +633,7 @@ class StatArray : public BaseArray<T>
virtual void resize(const std::vector<size_t>& dims)
{
if (dims != this->getDims())
std::runtime_error("Cannot resize static array!");
throw std::runtime_error("Cannot resize static array!");
}

/**
Expand Down

0 comments on commit 46295b5

Please sign in to comment.