T
Torben Laursen
I handle errors in my code by using my own exception class that takes a
number as argument to the constructor, and that number puts a string into
the exception class. The user can then catch the class and display the
string to the user.
Now the strings are all stored inside a map inside the exception class.
But my number of strings are growing and having them all inside the
exception class seems as a bad idear.
Does anyone know a good way to store the strings? (PS I want them compiled
into the code)
Regards Torben
number as argument to the constructor, and that number puts a string into
the exception class. The user can then catch the class and display the
string to the user.
Now the strings are all stored inside a map inside the exception class.
But my number of strings are growing and having them all inside the
exception class seems as a bad idear.
Does anyone know a good way to store the strings? (PS I want them compiled
into the code)
Regards Torben