Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Handling the ASSIGN_TYPE_CONFLICT in a try catch block

Former Member
0 Kudos

Hi,

Post WAS 610 all system exceptions are handled by exception classes, I could not find the exception class for the runtime exception ASSIGN_TYPE_CONFLICT, if any body is in knowledge of the same or knows of a better way to handle the runtime exception kindly let me know.

Thanks in advance.

Aniruddha Gargya

3 REPLIES 3

athavanraja
Active Contributor

for assign you have these

CX_SY_ASSIGN_CAST_ERROR

CX_SY_ASSIGN_CAST_ILLEGAL_CAST

CX_SY_ASSIGN_CAST_UNKNOWN_TYPE

CX_SY_ASSIGN_ERROR

CX_SY_ASSIGN_OUT_OF_RANGE

Regards

Raja

0 Kudos

Hi Raja,

I have already tried all teh exceptions listed for type conversion and assign. The help document also suggested that teh exception class name for a runtime exception will appear in the system trace.

The issue still remains where it was, When i get this execption from a web page the same is not being caught.

Thanks and Regards,

Aniruddha Gargya

Former Member
0 Kudos

Essential part is to use ASSIGN ... To ... CASTING.

Then you can catch cx_sy_assign_cast_illegal_cast.