added code + msgs strings to the exception-message when error occurs