Sorry, the title may be not so straight forward.
I want to keep a list of error code and messages with in the program, and not in database or external file.
My initial approach was to create a struct with error code and error message and save it as a constant with dictionary data type.
Unfortunately constant can only be set to primal data type such as integer, string, boolean & text.
The only way that I think can be done is to create a computed property in a class where I will have to set all the structure values by code.
Would there be a elegant way to implement this?