public static Exception GetPassThruException(this J2534Extended passThru) { var error = ErrorBuffer.Value; passThru.PassThruGetLastError(error); return(new Exception(error.ToString())); }