Dynamically define cudart exception class types.