getKey and getCaption should not throw unhandled error - Mendix Forum

getKey and getCaption should not throw unhandled error

31

When using the functions getKey and/or getCaption on an enum and the enum value is empty, then an unhandled generic error will be thrown to the user. This is not wanted. Better would be if Mendix handles a getKey or getCaption of an empty enum value as empty instead of throwing an exception.

asked
4 answers

Would be far more efficient and readable .

Created

Would be far more efficient and readable 👍

Created

Agree

Created

I cannot agree more.

Created