replaced _inline_throw_error with _inline_throw_exception
wrote _inline_throw_exception
wrote tests for inline exception for AttributeIsRequired