Added documentation for createCustomException