Changed exception names

This commit is contained in:
jwellbelove 2014-11-03 12:31:39 +00:00
parent c38652ebfa
commit 64f3386b37

12
array.h
View File

@ -61,11 +61,11 @@ namespace etl
///\ingroup array ///\ingroup array
/// The out of range exceptions. /// The out of range exceptions.
//*************************************************************************** //***************************************************************************
class array_out_of_range_exception : public array_exception class array_out_of_range : public array_exception
{ {
public: public:
array_out_of_range_exception() array_out_of_range()
: array_exception("array out of range") : array_exception("array out of range")
{ {
} }
@ -194,7 +194,7 @@ namespace etl
//************************************************************************* //*************************************************************************
/// Returns a reference to the value at index 'i'. /// Returns a reference to the value at index 'i'.
/// If ETL_USE_EXCEPTIONS is defined then am array_out_of_range_exception is /// If ETL_USE_EXCEPTIONS is defined then am array_out_of_range is
/// thown if the index is out of range. /// thown if the index is out of range.
///\param i The index of the element to access. ///\param i The index of the element to access.
//************************************************************************* //*************************************************************************
@ -203,7 +203,7 @@ namespace etl
#if ETL_USE_EXCEPTIONS #if ETL_USE_EXCEPTIONS
if (i >= SIZE) if (i >= SIZE)
{ {
throw array_out_of_range_exception(); throw array_out_of_range();
} }
#endif #endif
@ -212,7 +212,7 @@ namespace etl
//************************************************************************* //*************************************************************************
/// Returns a const reference to the value at index 'i'. /// Returns a const reference to the value at index 'i'.
/// If ETL_USE_EXCEPTIONS is defined then am array_out_of_range_exception is /// If ETL_USE_EXCEPTIONS is defined then am array_out_of_range is
/// thown if the index is out of range. /// thown if the index is out of range.
///\param i The index of the element to access. ///\param i The index of the element to access.
//************************************************************************* //*************************************************************************
@ -221,7 +221,7 @@ namespace etl
#if ETL_USE_EXCEPTIONS #if ETL_USE_EXCEPTIONS
if (i >= SIZE) if (i >= SIZE)
{ {
throw array_out_of_range_exception(); throw array_out_of_range();
} }
#endif #endif