Why not pass that info into the constructor of your error handler? The author of the calling application knows what type of app it is (or at least you would hope).