Initial Commit

This commit is contained in:
2023-06-21 12:46:23 -04:00
commit c70248a520
1352 changed files with 336780 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
namespace Org.BouncyCastle.Tsp
{
/**
* Exception thrown if a TSP request or response fails to validate.
* <p>
* If a failure code is assciated with the exception it can be retrieved using
* the getFailureCode() method.</p>
*/
public class TspValidationException
: TspException
{
private int failureCode;
public TspValidationException(
string message)
: base(message)
{
this.failureCode = -1;
}
public TspValidationException(
string message,
int failureCode)
: base(message)
{
this.failureCode = failureCode;
}
/**
* Return the failure code associated with this exception - if one is set.
*
* @return the failure code if set, -1 otherwise.
*/
public int FailureCode
{
get { return failureCode; }
}
}
}