Add InvalidModeException support/docs.