To swear by heaven is the same as swearing by God's throne and by the one who sits on that throne.