Made exception handling in class Field