uses some of the properties of the Exception class