// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
#pragma once
#include "Engine/Debug/Exception.h"
namespace Log
{
///
/// The exception that is thrown when a method call is invalid in an object's current state.
///
class InvalidOperationException : public Exception
{
public:
///
/// Init
///
InvalidOperationException()
: InvalidOperationException(String::Empty)
{
}
///
/// Creates default exception with additional data
///
/// Additional information that help describe error
InvalidOperationException(const String& additionalInfo)
: Exception(TEXT("Current object didn't exists or its state was invalid."), additionalInfo)
{
}
};
}