--- title: "Exception handling" slug: "oas-fullsdk-pgjava-exception-handling-3-28" updated: 2025-07-04T10:05:17Z published: 2025-07-07T15:34:12Z canonical: "docs.onespan.com/oas-fullsdk-pgjava-exception-handling-3-28" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.onespan.com/llms.txt > Use this file to discover all available pages before exploring further. # Exception handling By default, the SOAP handlers ignore underlying exceptions, and always return a generic "Service is not available" error message with error code –999 in the response model, if a SOAP connection to the OneSpan Authentication Server instance cannot be established. To make error handling easier, you can change the behavior to re-throw underlying exceptions so they can be propagated to and properly handled by the application (as IdentikeyConnectionException). Call the setRethrowOnConnectionError() method from the ConfigurationBean instance and set its value to true: ```java configurationBean.setRethrowOnConnectionError(true); ```