// Error Range // Convert the different error sub-system codes to a single integer range internal static int ERGeneral(Blue.Driver.ErrorCodes e) { return(((int)e) + 1000); }
// Have typesafe ctors for each error-subsystem internal ErrorException(Blue.Driver.ErrorCodes e, FileRange location, string stMessage) : this(ERGeneral(e), location, stMessage) { }