CLASS {{p}}cx_not_enrolled DEFINITION PUBLIC INHERITING FROM {{p}}cx_exam_error FINAL CREATE PUBLIC. PUBLIC SECTION. METHODS constructor IMPORTING iv_student_id TYPE string. ENDCLASS. CLASS {{p}}cx_not_enrolled IMPLEMENTATION. METHOD constructor. super->constructor( iv_student_id = iv_student_id iv_text = 'The student is not enrolled.' ). ENDMETHOD. ENDCLASS.