@@ -370,7 +370,7 @@ public RetryWhenContainsHandler(params string[] contents)
370370 {
371371 if ( contents == null || contents . Length == 0 )
372372 {
373- throw new SpiderException ( "contents should not be empty/null. " ) ;
373+ throw new SpiderException ( "contents should not be empty/null" ) ;
374374 }
375375
376376 _contents = contents ;
@@ -468,7 +468,7 @@ public RedialWhenExceptionThrowHandler(string exceptionMessage)
468468 {
469469 if ( string . IsNullOrWhiteSpace ( exceptionMessage ) )
470470 {
471- throw new SpiderException ( "exceptionMessage should not be null or empty. " ) ;
471+ throw new SpiderException ( "exceptionMessage should not be null or empty" ) ;
472472 }
473473
474474 _exceptionMessage = exceptionMessage ;
@@ -521,10 +521,10 @@ public class RedialAndUpdateCookiesWhenContainsHandler : AfterDownloadCompleteHa
521521 /// <param name="contents">包含的内容(specified contents)</param>
522522 public RedialAndUpdateCookiesWhenContainsHandler ( ICookieInjector cookieInjector , params string [ ] contents )
523523 {
524- _cookieInjector = cookieInjector ?? throw new SpiderException ( "cookieInjector should not be null. " ) ;
524+ _cookieInjector = cookieInjector ?? throw new SpiderException ( "cookieInjector should not be null" ) ;
525525 if ( contents == null || contents . Length == 0 )
526526 {
527- throw new SpiderException ( "contents should not be null or empty. " ) ;
527+ throw new SpiderException ( "contents should not be null or empty" ) ;
528528 }
529529
530530 _contents = contents ;
@@ -616,7 +616,7 @@ public override void Handle(ref Page page, IDownloader downloader, ISpider spide
616616
617617 if ( begin < 0 )
618618 {
619- throw new SpiderException ( $ "Cutout failed, can not find begin string: { _startPart } . ") ;
619+ throw new SpiderException ( $ "Cutout failed, can not find begin string: { _startPart } ") ;
620620 }
621621
622622 int end = rawText . IndexOf ( _endPart , begin , StringComparison . Ordinal ) ;
@@ -629,7 +629,7 @@ public override void Handle(ref Page page, IDownloader downloader, ISpider spide
629629
630630 if ( begin < 0 || length < 0 )
631631 {
632- throw new SpiderException ( "Cutout failed. Please check your settings. " ) ;
632+ throw new SpiderException ( "Cutout failed. Please check your settings" ) ;
633633 }
634634
635635 string newRawText = rawText . Substring ( begin , length ) . Trim ( ) ;
0 commit comments