You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.0 KiB
48 lines
1.0 KiB
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR) |
|
#pragma warning disable |
|
using System; |
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Tsp |
|
{ |
|
/** |
|
* Exception thrown if a TSP request or response fails to validate. |
|
* <p> |
|
* If a failure code is associated with the exception it can be retrieved using |
|
* the getFailureCode() method.</p> |
|
*/ |
|
#if !(NETCF_1_0 || NETCF_2_0 || SILVERLIGHT || PORTABLE || NETFX_CORE) |
|
[Serializable] |
|
#endif |
|
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; } |
|
} |
|
} |
|
} |
|
#pragma warning restore |
|
#endif
|
|
|