Fixed Exception constructor to accept nil values