summaryrefslogtreecommitdiff
path: root/Plugins/MonoGame.Extended/source/MonoGame.Extended.Collisions/Layers/UndefinedLayerException.cs
blob: a27b5b6b3b6b5ea98abc7b52d054e8b4e54f9894 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
namespace MonoGame.Extended.Collisions.Layers;

using System;

/// <summary>
/// Thrown when the collision system has no layer defined with the specified name
/// </summary>
public class UndefinedLayerException : Exception
{
    /// <summary>
    /// Thrown when the collision system has no layer defined with the specified name
    /// </summary>
    /// <param name="layerName">The undefined layer name</param>
    public UndefinedLayerException(string layerName)
        : base($"Layer with name '{layerName}' is undefined")
    {
    }
}