testss
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
public static class DebugUtility
|
||||
{
|
||||
public static string logPath => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "Ludiq.log");
|
||||
|
||||
public static void LogToFile(string message)
|
||||
{
|
||||
File.AppendAllText(logPath, message + Environment.NewLine);
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
public class InvalidConversionException : InvalidCastException
|
||||
{
|
||||
public InvalidConversionException() : base() { }
|
||||
public InvalidConversionException(string message) : base(message) { }
|
||||
public InvalidConversionException(string message, Exception innerException) : base(message, innerException) { }
|
||||
}
|
||||
}
|
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
public class InvalidImplementationException : Exception
|
||||
{
|
||||
public InvalidImplementationException() : base() { }
|
||||
public InvalidImplementationException(string message) : base(message) { }
|
||||
}
|
||||
}
|
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
public class UnexpectedEnumValueException<T> : Exception
|
||||
{
|
||||
public UnexpectedEnumValueException(T value) : base("Value " + value + " of enum " + typeof(T).Name + " is unexpected.")
|
||||
{
|
||||
Value = value;
|
||||
}
|
||||
|
||||
public T Value { get; private set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user