made Exception class public