Explanatory Question
Write a try/catch block that throws an Exception if the value of variable X is less than zero. The exception should return message: "ERROR: Negative value in X coordinate".
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.