-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Change the expected exception for all BigOutputFileName tests, from ProcessException to ServerErrorException. Create a single helper method in order to easily change in the future. Details: A server error (500) occurs when a file with a name length of 130 characters is sent. The server was expected to respond with a ProcessException error but it responded with an unspecified error (500). { "error":{ "type":"ServerError", "message":"Something on our end went wrong, probably we are not catching some exception we should catch! We are logging this and we will fix it.", "code":"500" } } System.Net.Http.HttpRequestException: 500 (Internal Server Error) * Minor fixes: - Change dead pdf urls on test settings - Add debug mode - Change async http post call to sync * Change release-preview action trigger * Add Signature API client * Add Signers * Fix list type name * Add sign samples * Fix sign samples * Fix sign sample * Fix warnings * Fix DownloadFileAsync sync call to async * Update ci * Fix ci * Update ci * Fix ci * Fix tests * Minor fixes: - Change dead pdf urls on test settings - Add debug mode - Change async http post call to sync * Fix * Minor fixes: - Change dead pdf urls on test settings - Add debug mode - Change async http post call to sync * Add signature exceptions * Fix request helper * Sign task minor fix * Change test file * Remove password edit test files * Remove test from ci
- Loading branch information
Showing
23 changed files
with
359 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using System; | ||
using System.Runtime.Serialization; | ||
|
||
namespace LovePdf.Model.Exception | ||
{ | ||
/// <summary> | ||
/// Sign Start Exeption | ||
/// </summary> | ||
[Serializable] | ||
public class SignStartException : System.Exception | ||
{ | ||
/// <summary> | ||
/// Default Constructor | ||
/// </summary> | ||
public SignStartException() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Constructor | ||
/// </summary> | ||
public SignStartException(String message) : base(message) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Init a new Instance of the class ILovePDF.SignStartException | ||
/// </summary> | ||
/// <param name="message"></param> | ||
/// <param name="innerException"></param> | ||
public SignStartException(String message, System.Exception innerException) : base(message, innerException) | ||
{ | ||
} | ||
|
||
#if !NETSTANDARD1_5 | ||
/// <summary> | ||
/// Init a new Instance of the class ILovePDF.SignStartException | ||
/// </summary> | ||
/// <param name="info"></param> | ||
/// <param name="context"></param> | ||
protected SignStartException(SerializationInfo info, StreamingContext context) : base(info, context) | ||
{ | ||
} | ||
#endif | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using System; | ||
using System.Runtime.Serialization; | ||
|
||
namespace LovePdf.Model.Exception | ||
{ | ||
/// <summary> | ||
/// Sign Start Exeption | ||
/// </summary> | ||
[Serializable] | ||
public class SignatureException : System.Exception | ||
{ | ||
/// <summary> | ||
/// Default Constructor | ||
/// </summary> | ||
public SignatureException() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Constructor | ||
/// </summary> | ||
public SignatureException(String message) : base(message) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Init a new Instance of the class ILovePDF.SignStartException | ||
/// </summary> | ||
/// <param name="message"></param> | ||
/// <param name="innerException"></param> | ||
public SignatureException(String message, System.Exception innerException) : base(message, innerException) | ||
{ | ||
} | ||
|
||
#if !NETSTANDARD1_5 | ||
/// <summary> | ||
/// Init a new Instance of the class ILovePDF.SignStartException | ||
/// </summary> | ||
/// <param name="info"></param> | ||
/// <param name="context"></param> | ||
protected SignatureException(SerializationInfo info, StreamingContext context) : base(info, context) | ||
{ | ||
} | ||
#endif | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
using System; | ||
using System.Runtime.Serialization; | ||
|
||
namespace LovePdf.Model.Exception | ||
{ | ||
/// <summary> | ||
/// Sign start Failed Exception. | ||
/// </summary> | ||
/// <remarks> | ||
/// </remarks> | ||
[Serializable] | ||
public class TaskStartException : System.Exception | ||
{ | ||
/// <summary> | ||
/// Default Constructor | ||
/// </summary> | ||
public TaskStartException() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Constructor | ||
/// </summary> | ||
public TaskStartException(String message) : base(message) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Init a new Instance of the class ILovePDF.ProcessingException | ||
/// </summary> | ||
/// <param name="message">Message.</param> | ||
/// <param name="innerException">Inner Exception.</param> | ||
public TaskStartException(String message, System.Exception innerException) : base(message, innerException) | ||
{ | ||
} | ||
|
||
#if !NETSTANDARD1_5 | ||
/// <summary> | ||
/// Init a new Instance of the class ILovePDF.ProcessingException | ||
/// </summary> | ||
/// <param name="info"> Serialization Information.</param> | ||
/// <param name="context"> Streaming Context.</param> | ||
protected TaskStartException(SerializationInfo info, StreamingContext context) : base(info, context) | ||
{ | ||
} | ||
#endif | ||
} | ||
} |
Oops, something went wrong.