docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ModerationServiceException

    Represents an Exception that occurs when communicating with the Unity Moderation service

    Inheritance
    object
    Exception
    RequestFailedException
    ModerationServiceException
    Implements
    ISerializable
    Inherited Members
    RequestFailedException.ErrorCode
    Exception.GetBaseException()
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exception.GetType()
    Exception.ToString()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    Exception.SerializeObjectState
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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

    Implements

    ISerializable
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)