Throw error if isTransparent trap throws error