Add error code constants for RandException