Support static access to error-code of error-domain
Currently it isn't intuitive to retrieve the integer representation of an error-code.
var code = new IOError.NO_SPACE ("foo").code;
The way more efficient way would be
var code = IOError.NO_SPACE;