replaced error status objects with exceptions
replaced all error objects with exceptions