Resource Exception passed