Removed "Magic Numbers" - throws exceptions for error messages