Exceptions raised by the coercion model

exception sage.structure.coerce_exceptions.CoercionException

Bases: exceptions.TypeError

This is the baseclass of exceptions that the coercion model raises when trying to discover coercions. We don’t use standard Python exceptions to avoid inadvertently catching and suppressing real errors.

Usually one raises this to indicate the attempted action isn’t implemented/appropriate, but if there are other things to try not to immediately abort to the user.