Added core Exception class and SdlException
Throw some exceptions in sdl classes