assessment_error_throw function

Error handler for assessments to throw error immediately