And this solution, we're going to quality control the movie class, starting with the constructor,
the caller should not be allowed to pass a name that is Neller Blank.
So if the name is null.
Or as blank.
We're going to throw a new illegal argument exception.
Name must contain a value.
We also need to check if the format doesn't equal DVD or Blu ray, so our condition is going to check
if format equals DVD.
Or if it equals the Blu ray.
Then we'll reverse it so that it checks if it doesn't equal DVD or Blu ray.
In which case, we're going to throw a new.
A legal argument, exception.
Telling the caller format must be DVD or Blu ray.
Also, ratings can only go from zero to 10, so we can't allow the color to pass in a negative rating
or one that exceeds 10.
So if rating is smaller than zero.
Or if it's bigger than 10.
We're going to throw a new illegal argument exception.
Invalid rating.
OK, now we need to quality control our methods, starting with name, the colour should not be allowed
to update an object with a name that is blank.
So if name is equal to null.
Or if it's blank.
Through a new.
A legal argument, exception.
Inside format will throw an exception of the format they passed isn't DVD or isn't Blu ray?
And inside rating, we're going to check if the rating is less than zero.
Or higher than 10.
In which case, we need to throw another illegal argument, exception.
And that's all for quality control, these methods and constructor are going to forbid the caller from
misusing them.