The code works fine until I try to make the code into a constructable class. When I attempt to construct an object from it I get the error
\"Default
Just enclose your call to the Constructor in a Try-Catch.