Did he/she give you any notice? Talk to your boss first and explain your situation to see if he/she can give you some time to find a new position.