// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
#pragma once
#include "Engine/Debug/Exception.h"
namespace Log
{
///
/// The exception that is thrown when an Argument array has index out of range.
///
class ArgumentOutOfRangeException : public Exception
{
public:
///
/// Init
///
ArgumentOutOfRangeException()
: ArgumentOutOfRangeException(String::Empty)
{
}
///
/// Creates default exception with additional data
///
/// Additional information that help describe error
ArgumentOutOfRangeException(const String& additionalInfo)
: Exception(TEXT("One or more of provided arguments has index out of range"), additionalInfo)
{
}
///
/// Creates default exception with additional data
///
/// Additional information that help describe error
ArgumentOutOfRangeException(const String& argumentName, const String& additionalInfo)
: Exception(String::Format(TEXT("Provided argument {0} is out of range."), argumentName), additionalInfo)
{
}
};
}