| 12345678910111213141516171819202122232425262728293031323334 | using System;using System.Runtime.CompilerServices;namespace LitMotion{    internal static class Error    {        [MethodImpl(MethodImplOptions.AggressiveInlining)]        public static void IsNull<T>(T target)        {            if (target == null) throw new ArgumentNullException(nameof(target));        }        public static void Format()        {            throw new FormatException("Input string was not in a correct format.");        }        public static void Argument(string message)        {            throw new ArgumentException(message);        }        public static void ArgumentNull(string message)        {            throw new ArgumentNullException(message);        }        public static void PlaybackSpeedMustBeZeroOrGreater()        {            throw new ArgumentOutOfRangeException("Playback speed must be 0 or greater.");        }    }}
 |