You can take a resit of your exam. If you do not pass your resit, you do not obtain ECTS-credits. You will still be able to receive your certificate of attendance and your transcript of records. On your transcript of records you will see the list of courses you passed and failed.