Separated environment exceptions into separate module