Exceptions and System Failures
Your application needs to catch certain classes to handle all the exceptions and system failures thrown by VMware Tanzu GemFire.
GemFireCheckedException. This class is the abstract superclass of exceptions that are thrown and declared. Wherever possible, GemFire exceptions are checked exceptions.
GemFireCheckedExceptionis a Tanzu GemFire version of
GemFireException. This class is the abstract superclass of unchecked exceptions that are thrown to indicate conditions for which the developer should not normally need to check. You can look at the subclasses of
GemFireExceptionto see all the runtime exceptions in the GemFire system; see the class hierarchy in the online Java API documentation.
GemFireExceptionis a Tanzu GemFire version of java.lang.
RuntimeException. You can also look at the method details in the
RegionAPI javadocs for Tanzu GemFire exceptions you may want to catch.
SystemFailure. In addition to exception management, Tanzu GemFire provides a class to help you manage catastrophic failure in your cluster, particularly in your application. The Javadocs for this class provide extensive guidance for managing failures in your system and your application. See
To see the exceptions thrown by a specific method, refer to the method’s online Java documentation.
A Tanzu GemFire system member can also throw exceptions generated by third-party software such as JGroups or
java.lang classes. For assistance in handling these exceptions, see the vendor documentation.