what is ComponentMetaData.FireError method does in SSIS script component
===

I have gone through MSDN.But could not understand properly about the blow mentioned method

What does the below code does,if included in a ssis script destination component?
bool Error = false;
this.ComponentMetaData.FireError(0, "myScriptComponent", "A Transformation error occurred. Check the corresponding Text File ", "", 0, out Error);

Regards,