ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 54 - PL-400 discussion

Report
Export

You need to handle errors in UpdateRecord.js.

Which code segment should you add at line UR06?

A.

catch(error) {

alert("Caught error: " + error.message);}

Answers
A.

catch(error) {

alert("Caught error: " + error.message);}

B.

Exception exception = Server.GetLastError() ;

if(exception != null)}

Answers
B.

Exception exception = Server.GetLastError() ;

if(exception != null)}

C.

catch(exception e){

console.writeline(e)}

Answers
C.

catch(exception e){

console.writeline(e)}

D.

function (error){

console.log(error.message)}

Answers
D.

function (error){

console.log(error.message)}

Suggested answer: A

Explanation:


asked 05/10/2024
Tuan Nguyen
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first