Handling exceptions
You are browsing legacy Javonet 1.5 (Java<>.NET bridge for Windows) documentation. Use the left side menu or click here to switch to latest Javonet 2.0 documentation. Javonet 2.0 allows you to use any module from
JVM, CLR, Netcore, Python, Ruby, Perl, NodeJS on Windows, Linux and MacOs
from any application created in Java, Clojure, Groovy, Kotlin, C#, F#, J#, VB.NET, Python, Perl, Ruby, JavaScript, TypeScript, C++ and GoLang
Any exception thrown by called technology can be handled in your Java code. All Javonet methods that operate on objects from any runtime throw a JavonetException when exceptions occur. You can catch exceptions by catching the JavonetExceptions, and then perform the appropriate exception handling logic.
Was this article helpful?