Creation of exception-handling static class