Throw errors when no handler has been set