Gets the error from its code value
The error code
The corresponding GemError
Error if the code is invalid
Gets the error from its code value