Created custom Exception classes.