Files
RobustToolbox/Robust.Shared/GameObjects/EntityCreationException.cs
T
Pieter-Jan BriersandGitHub 0b1f088f8c Better entity exception tolerance (#996)
* Use separate define constants for exception tolerance stuff.

* Improve handling of exceptions during entity creation.

The entity in question now gets marked as deleted immediately.

* Glorious.

* Testing components, tests, wrapper exception type.
2020-02-24 03:56:50 +01:00

34 lines
855 B
C#

using System;
using System.Runtime.Serialization;
namespace Robust.Shared.GameObjects
{
/// <summary>
/// Thrown if an entity fails to be created due to an exception inside a component.
/// </summary>
/// <remarks>
/// See the <see cref="Exception.InnerException"/> for the actual exception.
/// </remarks>
[Serializable]
public class EntityCreationException : Exception
{
public EntityCreationException()
{
}
public EntityCreationException(string message) : base(message)
{
}
public EntityCreationException(string message, Exception inner) : base(message, inner)
{
}
protected EntityCreationException(
SerializationInfo info,
StreamingContext context) : base(info, context)
{
}
}
}