Converts a bigint value to a PublishErrorCode enum.
The bigint value.
The corresponding PublishErrorCode.
Error if the value is not a valid publish error code.
Converts a bigint value to a PublishErrorCode enum.