File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ namespace Belin.PhpMinifier;
33/// <summary>
44/// Removes comments and whitespace from a PHP script.
55/// </summary>
6- public interface ITransformer : IDisposable {
6+ public interface ITransformer : IAsyncDisposable {
77
88 /// <summary>
99 /// Processes a PHP script.
Original file line number Diff line number Diff line change 1+ namespace Belin . PhpMinifier ;
2+
3+ /// <summary>
4+ /// Exception thrown when an error has occurred during the execution of a process.
5+ /// </summary>
6+ /// <param name="fileName">The name of the document or application file that has been started.</param>
7+ /// <param name="message">The message that describes the error.</param>
8+ /// <param name="innerException">The exception that is the cause of the current exception.</param>
9+ public class ProcessException ( string fileName , string message = "" , Exception ? innerException = null ) :
10+ Exception ( message . Length > 0 ? message : $ "The \" { fileName } \" process could not be started.", innerException ) {
11+
12+ /// <summary>
13+ /// The name of the document or application file that has been started.
14+ /// </summary>
15+ public string FileName => fileName ;
16+ }
You can’t perform that action at this time.
0 commit comments