org.bouncycastle.tsp

Class TSPValidationException

public class TSPValidationException extends TSPException

Exception thrown if a TSP request or response fails to validate.

If a failure code is assciated with the exception it can be retrieved using the getFailureCode() method.

Constructor Summary
TSPValidationException(String message)
TSPValidationException(String message, int failureCode)
Method Summary
intgetFailureCode()
Return the failure code associated with this exception - if one is set.

Constructor Detail

TSPValidationException

public TSPValidationException(String message)

TSPValidationException

public TSPValidationException(String message, int failureCode)

Method Detail

getFailureCode

public int getFailureCode()
Return the failure code associated with this exception - if one is set.

Returns: the failure code if set, -1 otherwise.