fix not thrown exception, pass inner exception