Move exceptions to where they are used and delete SystemException as it is the same as RuntimeException.