The error object contains all information that defines the error handling
behavior in Numpy. geterrobj is used internally by the other
functions that get and set error handling behavior (geterr, seterr,
geterrcall, seterrcall).

The error mask is a single integer that holds the treatment information
on all four floating point errors. The information for each error type
is contained in three bits of the integer. If we print it in base 8, we
can see what treatment is set for “invalid”, “under”, “over”, and
“divide” (in that order). The printed string can be interpreted with