COBCH0822 Exception-name must derive from java.lang.Throwable class

When the program is compiled with JVMGEN, the type specified, e.g. in the catch phrase of a try/catch block, must derive from the class java.lang.Throwable.

Resolution:

Edit the code to ensure that the type is derived from java.lang.Throwable; then recompile.

Example:

In the following example, the type is derived from java.lang.String. You must change the type to java.lang.Throwable.

       class-id a.
       method-id main static.
           try
               display "Hello"
           catch e as type java.lang.String
               display "In catch block"
           end-try
       end method.
       end class.