// 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 Arguments are not valid. /// class ArgumentException : public Exception { public: /// /// Init /// ArgumentException() : ArgumentException(String::Empty) { } /// /// Creates default exception with additional data /// /// Additional information that help describe error ArgumentException(const String& additionalInfo) : Exception(TEXT("One or more of provided arguments are not valid."), additionalInfo) { } /// /// Creates default exception with additional data /// /// Additional information that help describe error ArgumentException(const String& argumentName, const String& additionalInfo) : Exception(String::Format(TEXT("Provided argument {0} is not valid."), argumentName), additionalInfo) { } }; }