The FireError method raises an error that is compatible with the built-in error handling methods used elsewhere in SSIS. That is, the above code causes an error that occurs when the OnError event occurs.
Parameters that follow the FireError method are described in BOL.
This can be used to provide adequate error handling (which you should always do when writing any custom code). For instance:.
Try
'Your Code Here
Catch
'Error handling here
Me.ComponentMetadata.FireError(...)
end try
.FireError, .Fire... , SSIS, ..FireInformation .