Abstracting out Exceptions to inherit from PipelineException class. Handle nulls in the data flow.