File tree Expand file tree Collapse file tree
src/MediaConverters/MediaConverters.Tool/Contexts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44namespace DotNetCampus . MediaConverters . Contexts ;
55
6- internal readonly record struct MediaConverterErrorCode
6+ /// <summary>
7+ /// 多媒体转换过程的错误代码
8+ /// </summary>
9+ public readonly record struct MediaConverterErrorCode
710{
811 /// <summary>
912 /// 成功
@@ -15,12 +18,24 @@ internal readonly record struct MediaConverterErrorCode
1518 /// </summary>
1619 public static readonly ErrorCode UnknownError = new ( - 1 , "Unknown error" ) ;
1720
21+ /// <summary>
22+ /// 未知的图片格式
23+ /// </summary>
1824 public static readonly ErrorCode UnknownImageFormat = new ( 1001 , "Unknown image format" ) ;
1925
26+ /// <summary>
27+ /// 图片内容错误
28+ /// </summary>
2029 public static readonly ErrorCode InvalidImageContent = new ( 1002 , "Invalid image content" ) ;
2130
31+ /// <summary>
32+ /// 找不到图片文件
33+ /// </summary>
2234 public static readonly ErrorCode ImageFileNotFound = new ( 1003 , "Image file not found" ) ;
2335
36+ /// <summary>
37+ /// 不支持的转换
38+ /// </summary>
2439 public static readonly ErrorCode NotSupported = new ( 1004 , "Not supported operation" ) ;
2540
2641 /// <summary>
You can’t perform that action at this time.
0 commit comments