Class UgcErrorCodes
UgcErrorCodes lists the error codes to expect from UgcException and failed events. The error code range is: 22000 to 22999.
Inherited Members
Namespace: Unity.Services.Ugc.Bridge.Internal
Assembly: Unity.Services.Ugc.Bridge.Editor.dll
Syntax
public static class UgcErrorCodes
Fields
ContentHidden
The error returned when the content is hidden from the user.
Declaration
public static readonly int ContentHidden
Field Value
Type | Description |
---|---|
int |
ContentNotFound
The error returned when the content wasn't found.
Declaration
public static readonly int ContentNotFound
Field Value
Type | Description |
---|---|
int |
ContentNotRated
The error returned when the content wasn't rated yet.
Declaration
public static readonly int ContentNotRated
Field Value
Type | Description |
---|---|
int |
ContentUnauthorized
The error returned when the user isn't the creator of the content.
Declaration
public static readonly int ContentUnauthorized
Field Value
Type | Description |
---|---|
int |
InvalidStream
The error returned when the stream is either null, empty, not seekable or not readable.
Declaration
public static readonly int InvalidStream
Field Value
Type | Description |
---|---|
int |
InvalidTagAssignment
The error returned when unknown tag ids were passed to the request.
Declaration
public static readonly int InvalidTagAssignment
Field Value
Type | Description |
---|---|
int |
InvalidTagName
The error returned when the tag creation failed due to an invalid tag name.
Declaration
public static readonly int InvalidTagName
Field Value
Type | Description |
---|---|
int |
InvalidTagOperation
The error returned when the tag creation failed.
Declaration
public static readonly int InvalidTagOperation
Field Value
Type | Description |
---|---|
int |
MinValue
The minimal value of an UGC error code. Any error code thrown from UGC SDK less than it is from CommonErrorCodes.
Declaration
public static readonly int MinValue
Field Value
Type | Description |
---|---|
int |
NullResults
The error returned when the request did not return expected results and the result field is null.
Declaration
public static readonly int NullResults
Field Value
Type | Description |
---|---|
int |
PreconditionFailed
Precondition failed.
Declaration
public static readonly int PreconditionFailed
Field Value
Type | Description |
---|---|
int |
ProjectHidden
The error returned when UGC is enabled for the project but is hidden. To make it visible, visit the Unity Dashboard, UGC > Settings and check the "Is Visible?" checkbox.
Declaration
public static readonly int ProjectHidden
Field Value
Type | Description |
---|---|
int |
ProjectInactive
The error returned when UGC is not enabled for the project.
Declaration
public static readonly int ProjectInactive
Field Value
Type | Description |
---|---|
int |
RepresentationNotFound
The error returned when the representation wasn't found.
Declaration
public static readonly int RepresentationNotFound
Field Value
Type | Description |
---|---|
int |
SubscriptionNotFound
The error returned when the user is already subscribed to the content.
Declaration
public static readonly int SubscriptionNotFound
Field Value
Type | Description |
---|---|
int |
Unauthorized
The error returned when the client was not authenticated before making the request.
Declaration
public static readonly int Unauthorized
Field Value
Type | Description |
---|---|
int |
UploadContentCanceled
The error returned when the content upload was canceled by the user or due to timeout.
Declaration
public static readonly int UploadContentCanceled
Field Value
Type | Description |
---|---|
int |
UploadContentFailed
The error returned when the content upload failed while sending the data to GCP. It will have an inner exception explaining why the request failed.
Declaration
public static readonly int UploadContentFailed
Field Value
Type | Description |
---|---|
int |
UserAlreadySubscribed
The error returned when the user is already subscribed to the content.
Declaration
public static readonly int UserAlreadySubscribed
Field Value
Type | Description |
---|---|
int |