exposing the exception up to the main class