Relaying error information in exception.

Reviewed-by: chi.tang