Top Description Fields Constructors Methods
org.bouncycastle.tsp

public Class TSPValidationException

extends TSPException
Class Inheritance

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.

Field Summary

Modifier and TypeField and Description
private int
Inherited from org.bouncycastle.tsp.TSPException:
underlyingException

Constructor Summary

AccessConstructor and Description
public
public
TSPValidationException(String message, int failureCode)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the failure code if set, -1 otherwise.
getFailureCode
()

Return the failure code associated with this exception - if one is set.

Inherited from org.bouncycastle.tsp.TSPException:
getCausegetUnderlyingException

Field Detail

failureCodeback to summary
private int failureCode

Constructor Detail

TSPValidationExceptionback to summary
public TSPValidationException(String message)
TSPValidationExceptionback to summary
public TSPValidationException(String message, int failureCode)

Method Detail

getFailureCodeback to summary
public int getFailureCode()

Return the failure code associated with this exception - if one is set.

Returns:int

the failure code if set, -1 otherwise.