You're breathtaking!
This commit is contained in:
33
Source/Engine/Debug/Exceptions/OverflowException.h
Normal file
33
Source/Engine/Debug/Exceptions/OverflowException.h
Normal file
@@ -0,0 +1,33 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Engine/Debug/Exception.h"
|
||||
|
||||
namespace Log
|
||||
{
|
||||
/// <summary>
|
||||
/// The exception that is thrown when an arithmetic, casting, or conversion operation results in an overflow.
|
||||
/// </summary>
|
||||
class OverflowException : public Exception
|
||||
{
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Init
|
||||
/// </summary>
|
||||
OverflowException()
|
||||
: OverflowException(String::Empty)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates default exception with additional data
|
||||
/// </summary>
|
||||
/// <param name="message">Additional information that help describe error</param>
|
||||
OverflowException(const String& additionalInfo)
|
||||
: Exception(TEXT("Arithmetic, casting, or conversion operation results in an overflow."), additionalInfo)
|
||||
{
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user