using System; using System.Runtime.Serialization; namespace Org.BouncyCastle.Tsp { /** * Exception thrown if a TSP request or response fails to validate. *
* If a failure code is associated with the exception it can be retrieved using * the getFailureCode() method.
*/ [Serializable] 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; } protected TspValidationException(SerializationInfo info, StreamingContext context) : base(info, context) { } ///