Moving exception to a first class public method