Which line of code should you insert at line 04?

You create an application that sends information to a web service by using the following code: (Line
numbers are included for reference only.)

When the web service returns a non-zero result code, you must raise an exception that contains the
result code.
You need to implement the code that generates the exception.
Which line of code should you insert at line 04?

You create an application that sends information to a web service by using the following code: (Line
numbers are included for reference only.)

When the web service returns a non-zero result code, you must raise an exception that contains the
result code.
You need to implement the code that generates the exception.
Which line of code should you insert at line 04?

A.
CustomError .prototype = Error.prototype;

B.
CustomError [“ErrorType”] = Error;

C.
CustomError.customError = true;

D.
Error-constructor = CustomError;



Leave a Reply 0

Your email address will not be published. Required fields are marked *