// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved. using System; namespace FlaxEngine { /// /// Flax exception object. /// /// [Serializable] public class FlaxException : SystemException { /// /// Initializes a new instance of the class. /// public FlaxException() : base("A Flax runtime error occurred!") { } /// /// Initializes a new instance of the class. /// /// The message that describes the error. public FlaxException(string message) : base(message) { } /// /// Initializes a new instance of the class. /// /// The error message that explains the reason for the exception. /// The exception that is the cause of the current exception. If the parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception. public FlaxException(string message, Exception innerException) : base(message, innerException) { } } }