Fatal error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

Fatal error

I just came across a question abt fatal error and I don't even know it guys can anyone help me!

21st May 2018, 7:05 AM
Scorpia Rising🎩
Scorpia Rising🎩 - avatar
3 Answers
+ 1
it will be shown while using require(), it will not able to find file at specified location. it will stop script execution. or you used something which is out of the scope of the program then it can possible to throw fatal error you can use exception handling to solve that make an exception whenever program goes out of scope the program it will handle that
21st May 2018, 7:19 AM
MsJ
MsJ - avatar
+ 6
When an error is triggered and the error is critical enough to prevent the script execution to complete, that's when you get "Fatal Error". Hth, cmiiw
21st May 2018, 7:50 AM
Ipang