mirror of
https://github.com/ETLCPP/etl.git
synced 2026-10-28 18:07:10 +08:00
Changed exception names
This commit is contained in:
parent
c38652ebfa
commit
64f3386b37
12
array.h
12
array.h
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user