// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved.
#pragma once
#include "Engine/Debug/Exception.h"
namespace Log
{
///
/// The exception that is thrown when an index is outside the bounds of an array or collection.
///
class IndexOutOfRangeException : public Exception
{
public:
///
/// Init
///
IndexOutOfRangeException()
: IndexOutOfRangeException(String::Empty)
{
}
///
/// Creates default exception with additional data
///
/// Additional information that help describe error
IndexOutOfRangeException(const String& additionalInfo)
: Exception(TEXT("Index is out of range for items in array"), additionalInfo)
{
}
};
}