// 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 number is divided by zero /// class DivideByZeroException : public Exception { public: /// /// Init /// DivideByZeroException() : DivideByZeroException(String::Empty) { } /// /// Creates default exception with additional data /// /// Additional information that help describe error DivideByZeroException(const String& additionalInfo) : Exception(TEXT("Tried to divide value by zero"), additionalInfo) { } }; }