Files
MonoGame.Extended/Source/MonoGame.Extended.Graphics/Batching/BatchCommandQueueOverflowException.cs
T
Lucas Girouard-StranksandDylan Wilson d0c621d0dc Create Graphics library. (#316)
* Fix BoundingRect unit tests.

* Create `graphics` library.
2016-11-27 22:51:59 +10:00

20 lines
743 B
C#

using System;
namespace MonoGame.Extended.Graphics.Batching
{
/// <summary>
/// The exception that is thrown when enqueuing draw commands into a
/// <see cref="Batch{TVertexType,TBatchDrawCommandData}" />
/// results in an overflow.
/// </summary>
/// <seealso cref="Exception" />
public class BatchCommandQueueOverflowException : Exception
{
internal BatchCommandQueueOverflowException(int maximumCommandsCount)
: base(
$"The maximum number of batch commands ({maximumCommandsCount}) has been reached. Consider increasing the maximum, reducing the number of commands, or flushing the commands to the GraphicsDevice."
)
{
}
}
}