// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved. #pragma once #include "Engine/Debug/Exception.h" namespace Log { /// /// The exception that is thrown when an arithmetic, casting, or conversion operation results in an overflow. /// class OverflowException : public Exception { public: /// /// Init /// OverflowException() : OverflowException(String::Empty) { } /// /// Creates default exception with additional data /// /// Additional information that help describe error OverflowException(const String& additionalInfo) : Exception(TEXT("Arithmetic, casting, or conversion operation results in an overflow."), additionalInfo) { } }; }