UndefinedLayerException.cs 545 B

123456789101112131415161718
  1. namespace MonoGame.Extended.Collisions.Layers;
  2. using System;
  3. /// <summary>
  4. /// Thrown when the collision system has no layer defined with the specified name
  5. /// </summary>
  6. public class UndefinedLayerException : Exception
  7. {
  8. /// <summary>
  9. /// Thrown when the collision system has no layer defined with the specified name
  10. /// </summary>
  11. /// <param name="layerName">The undefined layer name</param>
  12. public UndefinedLayerException(string layerName)
  13. : base($"Layer with name '{layerName}' is undefined")
  14. {
  15. }
  16. }