mirror of
				https://github.com/spectreconsole/spectre.console.git
				synced 2025-10-25 15:19:23 +00:00 
			
		
		
		
	Rename ExceptionFormats.None
This commit is contained in:
		
				
					committed by
					
						 Patrik Svensson
						Patrik Svensson
					
				
			
			
				
	
			
			
			
						parent
						
							3c3afe7439
						
					
				
				
					commit
					39a8588dc3
				
			| @@ -52,7 +52,7 @@ namespace Spectre.Console.Tests | ||||
|             Writer.Write(segment.Text); | ||||
|         } | ||||
|  | ||||
|         public string[] WriteExceptionAndGetLines(Exception ex, ExceptionFormats formats = ExceptionFormats.None) | ||||
|         public string[] WriteExceptionAndGetLines(Exception ex, ExceptionFormats formats = ExceptionFormats.Default) | ||||
|         { | ||||
|             this.WriteException(ex, formats); | ||||
|  | ||||
|   | ||||
| @@ -12,7 +12,7 @@ namespace Spectre.Console | ||||
|         /// </summary> | ||||
|         /// <param name="exception">The exception to write to the console.</param> | ||||
|         /// <param name="format">The exception format options.</param> | ||||
|         public static void WriteException(Exception exception, ExceptionFormats format = ExceptionFormats.None) | ||||
|         public static void WriteException(Exception exception, ExceptionFormats format = ExceptionFormats.Default) | ||||
|         { | ||||
|             Console.WriteException(exception, format); | ||||
|         } | ||||
|   | ||||
| @@ -11,7 +11,7 @@ namespace Spectre.Console | ||||
|         /// <summary> | ||||
|         /// The default formatting. | ||||
|         /// </summary> | ||||
|         None = 0, | ||||
|         Default = 0, | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Whether or not paths should be shortened. | ||||
|   | ||||
| @@ -13,7 +13,7 @@ namespace Spectre.Console | ||||
|         /// <param name="console">The console.</param> | ||||
|         /// <param name="exception">The exception to write to the console.</param> | ||||
|         /// <param name="format">The exception format options.</param> | ||||
|         public static void WriteException(this IAnsiConsole console, Exception exception, ExceptionFormats format = ExceptionFormats.None) | ||||
|         public static void WriteException(this IAnsiConsole console, Exception exception, ExceptionFormats format = ExceptionFormats.Default) | ||||
|         { | ||||
|             Render(console, exception.GetRenderable(format)); | ||||
|         } | ||||
|   | ||||
| @@ -14,7 +14,7 @@ namespace Spectre.Console | ||||
|         /// <param name="exception">The exception to format.</param> | ||||
|         /// <param name="format">The exception format options.</param> | ||||
|         /// <returns>A <see cref="IRenderable"/> representing the exception.</returns> | ||||
|         public static IRenderable GetRenderable(this Exception exception, ExceptionFormats format = ExceptionFormats.None) | ||||
|         public static IRenderable GetRenderable(this Exception exception, ExceptionFormats format = ExceptionFormats.Default) | ||||
|         { | ||||
|             return ExceptionFormatter.Format(exception, format); | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user