Create protected method to raise channel exception.

* makes code warning go away.