check (method)

check(self)[source]

assert the Circle is correct (the radius > 0)

Parameters:self (Circle) – A Circle object
Returns:
Return type:None
Raises:RadiusCircleError – The radius of a circle must be >= 0
exception RadiusCircleError[source]

Bases: Exception