Newer
Older
TheVengeance-Project-IADE-Unity2D / Assets / Ink / InkLibs / InkRuntime / StoryException.cs
@Rackday Rackday on 29 Oct 789 bytes Major Update
namespace Ink.Runtime
{
    /// <summary>
    /// Exception that represents an error when running a Story at runtime.
    /// An exception being thrown of this type is typically when there's
    /// a bug in your ink, rather than in the ink engine itself!
    /// </summary>
    public class StoryException : System.Exception
    {
        public bool useEndLineNumber;

        /// <summary>
        /// Constructs a default instance of a StoryException without a message.
        /// </summary>
        public StoryException () { }

        /// <summary>
        /// Constructs an instance of a StoryException with a message.
        /// </summary>
        /// <param name="message">The error message.</param>
        public StoryException(string message) : base(message) {}
    }
}