The court may refuse to exercise the power granted by this chapter in any case where its declaration or determination is not necessary or proper at the time under all the circumstances.

(Added by Stats. 1921, Ch. 463.)