PHP exception throw कैसे करते हैं? को debug कैसे करें?

Other Published Updated 0 Views Verified
PHP exception throw कैसे करते हैं? को debug कैसे करें? सही विकल्प चुनें और code/solution को समझें।
Looking for the latest Sarkari Result 2026 updates? Check the latest government exam results, merit lists and result updates on Sarkari Resultess.
Sarkari Resultess
Questions & Answers

Answer & Explanation

4 Answers
Verified

throw Exception() only

throw Exception() only
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Sarkari Resultess
Editorial Answer 1
Verified

raise Exception(...)

raise Exception(...)
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Sarkari Resultess
Editorial Answer 2
Verified

exception.throw(...)

exception.throw(...)
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Sarkari Resultess
Editorial Answer 3
Verified Correct Answer

throw new Exception('Something went wrong');

throw new Exception('Something went wrong');
Additional Explanation
throw new Exception exception raise करता है। पहले exact error message, line number और input value check करें।
Sarkari Resultess
Editorial Answer 4