Class ModerationServiceException
Represents an Exception that occurs when communicating with the Unity Moderation service
Implements
Inherited Members
Namespace: Unity.Services.Moderation.Exceptions
Assembly: Unity.Services.Moderation.dll
Syntax
public class ModerationServiceException : RequestFailedException, ISerializable
Constructors
ModerationServiceException(ModerationServiceExceptionReason, string, Exception)
Instanciate a ModerationServiceException, catchable by clients.
Declaration
public ModerationServiceException(ModerationServiceExceptionReason reason, string message, Exception innerException = null)
Parameters
Type | Name | Description |
---|---|---|
ModerationServiceExceptionReason | reason | The error code or the HTTP Status returned by the service. |
string | message | The description of the exception. |
Exception | innerException | The exception raised by the service, if any. |
Properties
Reason
The reason of the exception.
Declaration
public ModerationServiceExceptionReason Reason { get; }
Property Value
Type | Description |
---|---|
ModerationServiceExceptionReason |