Question & Answer
Question
How does one display a custom exception message when LDAP system throws an exception?
Answer
Following are the steps required to show custom error message, which is meaningful to the user, along with the login-failed message on the login console. These steps assume an LDAP configuration is in place.
- Configure custom error code (EXTN_LDAP_ERRCODE) along with the custom message in Application Platform => Presentation => Custom Error Code
- Set yfs.yfs.console.login.error.showDetail=Y in the customer_overrides.properties file (Follow other steps given in Properties Guide to incorporate the changes made in the customer_overrides.properties)
- From LDAP implementation class in case of exception throw YFCException with error code defined in step 1.
Example Code Snippet:
YFCException y = new YFCException("EXTN_LDAP_ERRCODE");
throw y;
throw y;
The login screen will now display the customer error message whenever the LDAP system throws an exception.
[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Historical Number
HTG3272
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21563245