demellor68

.NET Try Catch

0 votes
What is recommend for a Catch () for error handling? Is there something specific for OSS Packages

Reply to: .NET Try Catch

0 votes
Hi demellor68, OneSpan Sign .Net SDK has two exception types: - EslException: This is a general exception. It includes a character string that indicates what failed. - EslServerException: This is a subclass of EslException. An EslServerException is thrown when the server returns unexpected code from a request. The EslServerException also contains the exact server response from the underlying API request. For detailed example, please go check our Error Handling Guide. Hope this could help! Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: .NET Try Catch

0 votes
For EslServerException, there's an unofficial list of error messages in our code share, which might interest you if you are handling specific exceptions related to package. For EslException, it could be thrown by SDK itself when validating or building/converting object. There's not yet a list for all error messages, but it usually comes with an explanation. Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off