define error objects
added error handle to business logic
.