The constructor of MerchantConfig may throws ConfigException that is a package private class, thus one has to catch Exception instead of ConfigException.
The javadoc of ConfigException explains that :
Note that you do not have to
catch this exception in your code as it would be the inner exception of a
ClientException.
Obviously, this not the inner exception of a client exception in my case.
⇒ I believe a fix could be one of the following :
either make ConfigException public
OR make the MerchantConfig constructor throw a ClientException with an inner ConfigException.
The constructor of MerchantConfig may throws ConfigException that is a package private class, thus one has to catch Exception instead of ConfigException.
The javadoc of ConfigException explains that :
Obviously, this not the inner exception of a client exception in my case.
⇒ I believe a fix could be one of the following :
non blocking issue
Workaround : catch Exception