示例#1
0
文件: Errors.cs 项目: 0xCM/arrows
 public static AppException FileDoesNotExist(FilePath path, [Caller] string caller = null, [File] string file = null, [Line] int?line = null)
 => AppException.Define(ErrorMessages.FileDoesNotExist(path, caller, file, line));
示例#2
0
文件: Errors.cs 项目: 0xCM/arrows
 public static AppException KindOpUnsupported <S, T>(S src, T dst, [Caller] string caller = null, [File] string file = null, [Line] int?line = null)
     where S : Enum
     where T : Enum
 => AppException.Define(ErrorMessages.KindOpUnsupported(src, dst, caller, file, line));
示例#3
0
文件: Errors.cs 项目: 0xCM/arrows
 public static AppException TypeUnsupported(Type t, [Caller] string caller = null, [File] string file = null, [Line] int?line = null)
 => AppException.Define(ErrorMessages.TypeUnsupported(t, caller, file, line));
示例#4
0
文件: Errors.cs 项目: 0xCM/arrows
 public static AppException FeatureUnsupported(string feature, [Caller] string caller = null, [File] string file = null, [Line] int?line = null)
 => AppException.Define(ErrorMessages.FeatureUnsupported(feature, caller, file, line));
示例#5
0
文件: Errors.cs 项目: 0xCM/arrows
 public static AppException EmptySourceSpan([Caller] string caller = null, [File] string file = null, [Line] int?line = null)
 => AppException.Define(ErrorMessages.EmptySourceSpan(caller, file, line));
示例#6
0
文件: Errors.cs 项目: 0xCM/arrows
 public static AppException KindUnsupported <T>(T kind, [Caller] string caller = null, [File] string file = null, [Line] int?line = null)
     where T : Enum
 => AppException.Define(ErrorMessages.KindUnsupported(kind, caller, file, line));
示例#7
0
文件: Errors.cs 项目: 0xCM/arrows
 public static AppException LengthMismatch(int lhs, int rhs, [Caller] string caller = null, [File] string file = null, [Line] int?line = null)
 => AppException.Define(ErrorMessages.LengthMismatch(lhs, rhs, caller, file, line));
示例#8
0
文件: Errors.cs 项目: 0xCM/arrows
 public static AppException NotFalse(string msg, [Caller] string caller = null, [File] string file = null, [Line] int?line = null)
 => AppException.Define(ErrorMessages.NotFalse(msg, caller, file, line));
示例#9
0
文件: Errors.cs 项目: 0xCM/arrows
 public static AppException NotNonzero([Caller] string caller = null, [File] string file = null, [Line] int?line = null)
 => AppException.Define(ErrorMessages.NotNonzero(caller, file, line));
示例#10
0
文件: Errors.cs 项目: 0xCM/arrows
 public static AppException ItemsNotEqual(int index, object lhs, object rhs, [Caller] string caller = null, [File] string file = null, [Line] int?line = null)
 => AppException.Define(ErrorMessages.ItemsNotEqual(index, lhs, rhs, caller, file, line));
示例#11
0
文件: Errors.cs 项目: 0xCM/arrows
 public static AppException NotLessThan(object lhs, object rhs, [Caller] string caller = null, [File] string file = null, [Line] int?line = null)
 => AppException.Define(ErrorMessages.NotLessThan(lhs, rhs, caller, file, line));